Skip to content

#c7af08

a dark, electric yellow · warm · closest name: Goldenrod

RGB
199, 175, 8
HSL
53°, 92%, 41%
CMYK
0, 12, 96, 22
Luminance
0.4282

At a glance

Every number on this page in one read: what #c7af08 is made of, how bright it looks, and which way it leans.

Hex
#c7af08
Hue
53°
yellow
Saturation
92%
electric
Lightness
41%
dark
Brightness
78%
HSV value
Perceived
68%
weighted brightness
Luminance
0.4282
WCAG relative
Temperature
Warm
19/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
9.56:1
Closest name
Goldenrod
ΔE2000 8.6
Where it sits
Hue53° of 360°
Saturation92%
Lightness41%
Temperature
Warm ← → Cool19% cool

Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#c7af08
RGBrgb(199, 175, 8)
HSLhsl(53, 92%, 41%)
CMYKcmyk(0%, 12%, 96%, 22%)
LABlab(71.4 -5.5 72.8)
LCHlch(71.4 73.0 94.4)
OKLCHoklch(0.752 0.155 99.2)
Decimal13086472
Display P3color(display-p3 0.780 0.686 0.031)

Copy-ready code

/* CSS */
color: #c7af08;
background-color: #c7af08;
/* Tailwind (arbitrary) */
class="text-[#c7af08] bg-[#c7af08]"
/* SCSS */
$brand: #c7af08;
/* SwiftUI */
Color(red: 0.780, green: 0.686, blue: 0.031)
/* Android */
Color.parseColor("#c7af08")
/* Flutter */
Color(0xFFC7AF08)
/* Python / OpenCV (BGR) */
(8, 175, 199)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #c7af08 · 9.56:1
Use #000000AAA at every size.
Aa
White text · 2.20:1
AA fail · AA large fail · AAA fail
Aa
Black text · 9.56:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #c7af08 as text scores 2.20:1 on white and 9.56:1 on black.

Accessibility — WCAG contrast

Aa
#c7af08 on white: 2.20:1
AA ✗ fail · AA-large · AAA
Aa
#c7af08 on black: 9.56:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #C2AA00
deuteranopia · #C8B31F
tritanopia · #D8A195

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #c7af08 is pinned to step 700; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FDFCF2
#FBF8E4
#F9F2C3
#FBEE93
#F9E55D
#F6DC27
#EBCF09
#c7af08
#9D8A06
#716409
#473F06
Base = 700Lightest = 50 · #FDFCF2Darkest = 950 · #473F06
:root {
  --brand-50: #FDFCF2;
  --brand-100: #FBF8E4;
  --brand-200: #F9F2C3;
  --brand-300: #FBEE93;
  --brand-400: #F9E55D;
  --brand-500: #F6DC27;
  --brand-600: #EBCF09;
  --brand-700: #c7af08;
  --brand-800: #9D8A06;
  --brand-900: #716409;
  --brand-950: #473F06;
  --brand: #c7af08;
  --brand-ink: #000000;
}

Colors that work with #c7af08

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#FAFAF4
Tinted page background
Border#EDE7C0
Hairlines and dividers
Muted text#9B914B
Captions on the surface
Accent#044FCB
Second voice, not a rival
Dark variant#7B6C05
Hover, pressed, headers
Light variant#FEFBE6
Selected rows, tints
Dark surface#242214
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #c7af08

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • Thin strokes and 1px borders — they disappear on light UI
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#0820C7
Analogous left#C75008
Analogous right#7FC708
Split-complement 1#087FC7
Split-complement 2#5008C7
Triadic 1#08C7AF
Triadic 2#AF08C7
Tetradic#08C750

RGB percentages

Red78.0%
Green68.6%
Blue3.1%

CMYK percentages

Cyan0.0%
Magenta12.1%
Yellow96.0%
Key (black)22.0%

Color previews

#c7af08 text on a black background

contrast 9.56:1

Card sample

#c7af08 text on a white background

contrast 2.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #c7af08;
Background color
Panel with #c7af08 background
background-color: #c7af08;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #c7af08;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(199, 175, 8, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(199, 175, 8, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c7af08;
background: linear-gradient(135deg, #c7af08, #60C708);

Monochromatic scale

Palettes built from #c7af08

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#c7af08 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
RetailLeisureEnergyWarning systems
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#c7af08, answered

What color is #c7af08?

#c7af08 is a dark electric yellow, closest to Goldenrod (ΔE2000 8.6). It sits at 53° on the hue wheel with 92% saturation and 41% lightness, which reads as warm.

What is the RGB value of #c7af08?

rgb(199, 175, 8) — 199 red, 175 green and 8 blue out of 255, or 78% / 68.6% / 3.1% by channel.

Is #c7af08 a light or a dark color?

It is a mid-tone. Relative luminance is 0.4282 and perceived brightness is 68%, so black text on it reaches 9.56:1.

Should I use black or white text on #c7af08?

Black. It scores 9.56:1 against #c7af08, versus 2.20:1 for white — AAA at any size.

What is the complementary color of #c7af08?

#0820C7 sits directly opposite on the wheel. Softer options are the split-complements #087FC7 and #5008C7, which give the same contrast with far less vibration.

What colors go well with #c7af08?

For interface work: #FAFAF4 as the surface, #EDE7C0 for borders, #9B914B for secondary text, #044FCB as an accent and #7B6C05 for hover and pressed states. For a palette, the analogous pair #C75008 and #7FC708 stays calm, while #0820C7 is the loudest partner.

What is #c7af08 in CMYK for printing?

cmyk(0%, 12%, 96%, 22%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #c7af08 warm or cool?

Warm — it scores 19 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C78008; nudged cooler, #9AC906.

Work with #c7af08 in the Color Lab