Skip to content

#cfbc38

a balanced, vivid yellow · warm · closest name: Dark Khaki

RGB
207, 188, 56
HSL
53°, 61%, 52%
CMYK
0, 9, 73, 19
Luminance
0.4952

At a glance

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

Hex
#cfbc38
Hue
53°
yellow
Saturation
61%
vivid
Lightness
52%
balanced
Brightness
81%
HSV value
Perceived
72%
weighted brightness
Luminance
0.4952
WCAG relative
Temperature
Warm
19/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
10.90:1
Closest name
Dark Khaki
ΔE2000 8.4
Where it sits
Hue53° of 360°
Saturation61%
Lightness52%
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#cfbc38
RGBrgb(207, 188, 56)
HSLhsl(53, 61%, 52%)
CMYKcmyk(0%, 9%, 73%, 19%)
LABlab(75.8 -7.5 65.2)
LCHlch(75.8 65.6 96.6)
OKLCHoklch(0.789 0.146 100.8)
Decimal13614136
Display P3color(display-p3 0.812 0.737 0.220)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfbc38 on white: 1.93:1
AA ✗ fail · AA-large · AAA
Aa
#cfbc38 on black: 10.90:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #CEB721
deuteranopia · #D3BE41
tritanopia · #DFAEA2

Color scale — 50 to 950

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

#FBFAF4
#F7F5E8
#F0EBCC
#E9E1A5
#DED177
#D3C24A
#cfbc38
#A49528
#837720
#60571B
#3C3611
Base = 600Lightest = 50 · #FBFAF4Darkest = 950 · #3C3611
:root {
  --brand-50: #FBFAF4;
  --brand-100: #F7F5E8;
  --brand-200: #F0EBCC;
  --brand-300: #E9E1A5;
  --brand-400: #DED177;
  --brand-500: #D3C24A;
  --brand-600: #cfbc38;
  --brand-700: #A49528;
  --brand-800: #837720;
  --brand-900: #60571B;
  --brand-950: #3C3611;
  --brand: #cfbc38;
  --brand-ink: #000000;
}

Colors that work with #cfbc38

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#336FD4
Second voice, not a rival
Dark variant#675D19
Hover, pressed, headers
Light variant#FAF8EA
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 #cfbc38

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
  • 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
  • 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#384BCF
Analogous left#CF7138
Analogous right#96CF38
Split-complement 1#3896CF
Split-complement 2#7138CF
Triadic 1#38CFBC
Triadic 2#BC38CF
Tetradic#38CF71

RGB percentages

Red81.2%
Green73.7%
Blue22.0%

CMYK percentages

Cyan0.0%
Magenta9.2%
Yellow72.9%
Key (black)18.8%

Color previews

#cfbc38 text on a black background

contrast 10.90:1

Card sample

#cfbc38 text on a white background

contrast 1.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cfbc38

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.

#cfbc38 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

Converts to four-color process without much drama. Proof it anyway.

#cfbc38, answered

What color is #cfbc38?

#cfbc38 is a balanced vivid yellow, closest to Dark Khaki (ΔE2000 8.4). It sits at 53° on the hue wheel with 61% saturation and 52% lightness, which reads as warm.

What is the RGB value of #cfbc38?

rgb(207, 188, 56) — 207 red, 188 green and 56 blue out of 255, or 81.2% / 73.7% / 22% by channel.

Is #cfbc38 a light or a dark color?

It is a mid-tone. Relative luminance is 0.4952 and perceived brightness is 72%, so black text on it reaches 10.90:1.

Should I use black or white text on #cfbc38?

Black. It scores 10.90:1 against #cfbc38, versus 1.93:1 for white — AAA at any size.

What is the complementary color of #cfbc38?

#384BCF sits directly opposite on the wheel. Softer options are the split-complements #3896CF and #7138CF, which give the same contrast with far less vibration.

What colors go well with #cfbc38?

For interface work: #FAFAF4 as the surface, #EDE7C0 for borders, #9B914B for secondary text, #336FD4 as an accent and #675D19 for hover and pressed states. For a palette, the analogous pair #CF7138 and #96CF38 stays calm, while #384BCF is the loudest partner.

What is #cfbc38 in CMYK for printing?

cmyk(0%, 9%, 73%, 19%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #cfbc38 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 #CF9338; nudged cooler, #ACD136.

Work with #cfbc38 in the Color Lab