Skip to content

#cf9b0b

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

RGB
207, 155, 11
HSL
44°, 90%, 43%
CMYK
0, 25, 95, 19
Luminance
0.3673

At a glance

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

Hex
#cf9b0b
Hue
44°
yellow
Saturation
90%
electric
Lightness
43%
dark
Brightness
81%
HSV value
Perceived
64%
weighted brightness
Luminance
0.3673
WCAG relative
Temperature
Warm
12/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
8.35:1
Closest name
Goldenrod
ΔE2000 2.9
Where it sits
Hue44° of 360°
Saturation90%
Lightness43%
Temperature
Warm ← → Cool12% 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#cf9b0b
RGBrgb(207, 155, 11)
HSLhsl(44, 90%, 43%)
CMYKcmyk(0%, 25%, 95%, 19%)
LABlab(67.1 8.7 69.6)
LCHlch(67.1 70.2 82.9)
OKLCHoklch(0.719 0.146 84.1)
Decimal13605643
Display P3color(display-p3 0.812 0.608 0.043)

Copy-ready code

/* CSS */
color: #cf9b0b;
background-color: #cf9b0b;
/* Tailwind (arbitrary) */
class="text-[#cf9b0b] bg-[#cf9b0b]"
/* SCSS */
$brand: #cf9b0b;
/* SwiftUI */
Color(red: 0.812, green: 0.608, blue: 0.043)
/* Android */
Color.parseColor("#cf9b0b")
/* Flutter */
Color(0xFFCF9B0B)
/* Python / OpenCV (BGR) */
(11, 155, 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 #cf9b0b · 8.35:1
Use #000000AAA at every size.
Aa
White text · 2.52:1
AA fail · AA large fail · AAA fail
Aa
Black text · 8.35:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #cf9b0b as text scores 2.52:1 on white and 8.35:1 on black.

Accessibility — WCAG contrast

Aa
#cf9b0b on white: 2.52:1
AA ✗ fail · AA-large · AAA
Aa
#cf9b0b on black: 8.35:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #B19B00
deuteranopia · #BDA919
tritanopia · #E28B84

Color scale — 50 to 950

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

#FDFAF2
#FBF5E5
#F8EAC3
#F9DF94
#F7CE5F
#F4BE2A
#E8AE0C
#cf9b0b
#9B7408
#70550B
#463507
Base = 700Lightest = 50 · #FDFAF2Darkest = 950 · #463507
:root {
  --brand-50: #FDFAF2;
  --brand-100: #FBF5E5;
  --brand-200: #F8EAC3;
  --brand-300: #F9DF94;
  --brand-400: #F7CE5F;
  --brand-500: #F4BE2A;
  --brand-600: #E8AE0C;
  --brand-700: #cf9b0b;
  --brand-800: #9B7408;
  --brand-900: #70550B;
  --brand-950: #463507;
  --brand: #cf9b0b;
  --brand-ink: #000000;
}

Colors that work with #cf9b0b

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#FAF9F4
Tinted page background
Border#EDE1C0
Hairlines and dividers
Muted text#9B864B
Captions on the surface
Accent#0770D3
Second voice, not a rival
Dark variant#795B06
Hover, pressed, headers
Light variant#FEF8E7
Selected rows, tints
Dark surface#242014
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 #cf9b0b

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#0B3FCF
Analogous left#CF390B
Analogous right#A1CF0B
Split-complement 1#0BA1CF
Split-complement 2#390BCF
Triadic 1#0BCF9B
Triadic 2#9B0BCF
Tetradic#0BCF39

RGB percentages

Red81.2%
Green60.8%
Blue4.3%

CMYK percentages

Cyan0.0%
Magenta25.1%
Yellow94.7%
Key (black)18.8%

Color previews

#cf9b0b text on a black background

contrast 8.35:1

Card sample

#cf9b0b text on a white background

contrast 2.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf9b0b

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.

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

#cf9b0b, answered

What color is #cf9b0b?

#cf9b0b is a dark electric yellow, closest to Goldenrod (ΔE2000 2.9). It sits at 44° on the hue wheel with 90% saturation and 43% lightness, which reads as warm.

What is the RGB value of #cf9b0b?

rgb(207, 155, 11) — 207 red, 155 green and 11 blue out of 255, or 81.2% / 60.8% / 4.3% by channel.

Is #cf9b0b a light or a dark color?

It is a mid-tone. Relative luminance is 0.3673 and perceived brightness is 64%, so black text on it reaches 8.35:1.

Should I use black or white text on #cf9b0b?

Black. It scores 8.35:1 against #cf9b0b, versus 2.52:1 for white — AAA at any size.

What is the complementary color of #cf9b0b?

#0B3FCF sits directly opposite on the wheel. Softer options are the split-complements #0BA1CF and #390BCF, which give the same contrast with far less vibration.

What colors go well with #cf9b0b?

For interface work: #FAF9F4 as the surface, #EDE1C0 for borders, #9B864B for secondary text, #0770D3 as an accent and #795B06 for hover and pressed states. For a palette, the analogous pair #CF390B and #A1CF0B stays calm, while #0B3FCF is the loudest partner.

What is #cf9b0b in CMYK for printing?

cmyk(0%, 25%, 95%, 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 #cf9b0b warm or cool?

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

Work with #cf9b0b in the Color Lab