Skip to content

#cf8f08

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

RGB
207, 143, 8
HSL
41°, 93%, 42%
CMYK
0, 31, 96, 19
Luminance
0.3293

At a glance

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

Hex
#cf8f08
Hue
41°
yellow
Saturation
93%
electric
Lightness
42%
dark
Brightness
81%
HSV value
Perceived
62%
weighted brightness
Luminance
0.3293
WCAG relative
Temperature
Warm
9/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
7.59:1
Closest name
Dark Goldenrod
ΔE2000 5.2
Where it sits
Hue41° of 360°
Saturation93%
Lightness42%
Temperature
Warm ← → Cool9% 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#cf8f08
RGBrgb(207, 143, 8)
HSLhsl(41, 93%, 42%)
CMYKcmyk(0%, 31%, 96%, 19%)
LABlab(64.1 15.1 67.9)
LCHlch(64.1 69.6 77.4)
OKLCHoklch(0.696 0.144 76.6)
Decimal13602568
Display P3color(display-p3 0.812 0.561 0.031)

Copy-ready code

/* CSS */
color: #cf8f08;
background-color: #cf8f08;
/* Tailwind (arbitrary) */
class="text-[#cf8f08] bg-[#cf8f08]"
/* SCSS */
$brand: #cf8f08;
/* SwiftUI */
Color(red: 0.812, green: 0.561, blue: 0.031)
/* Android */
Color.parseColor("#cf8f08")
/* Flutter */
Color(0xFFCF8F08)
/* Python / OpenCV (BGR) */
(8, 143, 207)

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 #cf8f08 · 7.59:1
Use #000000AAA at every size.
Aa
White text · 2.77:1
AA fail · AA large fail · AAA fail
Aa
Black text · 7.59:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #cf8f08 as text scores 2.77:1 on white and 7.59:1 on black.

Accessibility — WCAG contrast

Aa
#cf8f08 on white: 2.77:1
AA ✗ fail · AA-large · AAA
Aa
#cf8f08 on black: 7.59:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #A69200
deuteranopia · #B6A214
tritanopia · #E27E7A

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #cf8f08 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.

#FDF9F2
#FBF4E4
#F9E8C2
#FBD993
#F9C75D
#F7B427
#ECA309
#cf8f08
#9D6D06
#715009
#473206
Base = 700Lightest = 50 · #FDF9F2Darkest = 950 · #473206
:root {
  --brand-50: #FDF9F2;
  --brand-100: #FBF4E4;
  --brand-200: #F9E8C2;
  --brand-300: #FBD993;
  --brand-400: #F9C75D;
  --brand-500: #F7B427;
  --brand-600: #ECA309;
  --brand-700: #cf8f08;
  --brand-800: #9D6D06;
  --brand-900: #715009;
  --brand-950: #473206;
  --brand: #cf8f08;
  --brand-ink: #000000;
}

Colors that work with #cf8f08

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#FAF8F4
Tinted page background
Border#EDDEC0
Hairlines and dividers
Muted text#9B814B
Captions on the surface
Accent#047BD4
Second voice, not a rival
Dark variant#7B5505
Hover, pressed, headers
Light variant#FEF6E6
Selected rows, tints
Dark surface#241F14
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 #cf8f08

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#0848CF
Analogous left#CF2C08
Analogous right#ACCF08
Split-complement 1#08ACCF
Split-complement 2#2C08CF
Triadic 1#08CF8F
Triadic 2#8F08CF
Tetradic#08CF2C

RGB percentages

Red81.2%
Green56.1%
Blue3.1%

CMYK percentages

Cyan0.0%
Magenta30.9%
Yellow96.1%
Key (black)18.8%

Color previews

#cf8f08 text on a black background

contrast 7.59:1

Card sample

#cf8f08 text on a white background

contrast 2.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(207, 143, 8, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(207, 143, 8, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cf8f08;
background: linear-gradient(135deg, #cf8f08, #8BCF08);

Monochromatic scale

Palettes built from #cf8f08

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.

#cf8f08 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.

#cf8f08, answered

What color is #cf8f08?

#cf8f08 is a dark electric yellow, closest to Dark Goldenrod (ΔE2000 5.2). It sits at 41° on the hue wheel with 93% saturation and 42% lightness, which reads as warm.

What is the RGB value of #cf8f08?

rgb(207, 143, 8) — 207 red, 143 green and 8 blue out of 255, or 81.2% / 56.1% / 3.1% by channel.

Is #cf8f08 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3293 and perceived brightness is 62%, so black text on it reaches 7.59:1.

Should I use black or white text on #cf8f08?

Black. It scores 7.59:1 against #cf8f08, versus 2.77:1 for white — AAA at any size.

What is the complementary color of #cf8f08?

#0848CF sits directly opposite on the wheel. Softer options are the split-complements #08ACCF and #2C08CF, which give the same contrast with far less vibration.

What colors go well with #cf8f08?

For interface work: #FAF8F4 as the surface, #EDDEC0 for borders, #9B814B for secondary text, #047BD4 as an accent and #7B5505 for hover and pressed states. For a palette, the analogous pair #CF2C08 and #ACCF08 stays calm, while #0848CF is the loudest partner.

What is #cf8f08 in CMYK for printing?

cmyk(0%, 31%, 96%, 19%). 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 #cf8f08 warm or cool?

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

Work with #cf8f08 in the Color Lab