Skip to content

#cfc23c

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

RGB
207, 194, 60
HSL
55°, 61%, 52%
CMYK
0, 6, 71, 19
Luminance
0.5218

At a glance

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

Hex
#cfc23c
Hue
55°
yellow
Saturation
61%
vivid
Lightness
52%
balanced
Brightness
81%
HSV value
Perceived
74%
weighted brightness
Luminance
0.5218
WCAG relative
Temperature
Warm
21/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
11.44:1
Closest name
Dark Khaki
ΔE2000 8.4
Where it sits
Hue55° of 360°
Saturation61%
Lightness52%
Temperature
Warm ← → Cool21% 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#cfc23c
RGBrgb(207, 194, 60)
HSLhsl(55, 61%, 52%)
CMYKcmyk(0%, 6%, 71%, 19%)
LABlab(77.4 -10.4 65.3)
LCHlch(77.4 66.1 99.1)
OKLCHoklch(0.801 0.149 103.7)
Decimal13615676
Display P3color(display-p3 0.812 0.761 0.235)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfc23c on white: 1.84:1
AA ✗ fail · AA-large · AAA
Aa
#cfc23c on black: 11.44:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #D3BC26
deuteranopia · #D8C245
tritanopia · #DEB5A8

Color scale — 50 to 950

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

#FBFAF4
#F7F6E8
#EFECCC
#E9E3A5
#DED578
#cfc23c
#C4B730
#A49928
#837A20
#5F591B
#3C3811
Base = 500Lightest = 50 · #FBFAF4Darkest = 950 · #3C3811
:root {
  --brand-50: #FBFAF4;
  --brand-100: #F7F6E8;
  --brand-200: #EFECCC;
  --brand-300: #E9E3A5;
  --brand-400: #DED578;
  --brand-500: #cfc23c;
  --brand-600: #C4B730;
  --brand-700: #A49928;
  --brand-800: #837A20;
  --brand-900: #5F591B;
  --brand-950: #3C3811;
  --brand: #cfc23c;
  --brand-ink: #000000;
}

Colors that work with #cfc23c

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#EDE9C0
Hairlines and dividers
Muted text#9B944B
Captions on the surface
Accent#376CD4
Second voice, not a rival
Dark variant#666019
Hover, pressed, headers
Light variant#FAF9EB
Selected rows, tints
Dark surface#242314
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 #cfc23c

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#3C49CF
Analogous left#CF793C
Analogous right#93CF3C
Split-complement 1#3C93CF
Split-complement 2#793CCF
Triadic 1#3CCFC2
Triadic 2#C23CCF
Tetradic#3CCF79

RGB percentages

Red81.2%
Green76.1%
Blue23.5%

CMYK percentages

Cyan0.0%
Magenta6.3%
Yellow71.0%
Key (black)18.8%

Color previews

#cfc23c text on a black background

contrast 11.44:1

Card sample

#cfc23c text on a white background

contrast 1.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cfc23c

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.

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

#cfc23c, answered

What color is #cfc23c?

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

What is the RGB value of #cfc23c?

rgb(207, 194, 60) — 207 red, 194 green and 60 blue out of 255, or 81.2% / 76.1% / 23.5% by channel.

Is #cfc23c a light or a dark color?

It is a light color. Relative luminance is 0.5218 and perceived brightness is 74%, so black text on it reaches 11.44:1.

Should I use black or white text on #cfc23c?

Black. It scores 11.44:1 against #cfc23c, versus 1.84:1 for white — AAA at any size.

What is the complementary color of #cfc23c?

#3C49CF sits directly opposite on the wheel. Softer options are the split-complements #3C93CF and #793CCF, which give the same contrast with far less vibration.

What colors go well with #cfc23c?

For interface work: #FAFAF4 as the surface, #EDE9C0 for borders, #9B944B for secondary text, #376CD4 as an accent and #666019 for hover and pressed states. For a palette, the analogous pair #CF793C and #93CF3C stays calm, while #3C49CF is the loudest partner.

What is #cfc23c in CMYK for printing?

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

Is #cfc23c warm or cool?

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

Work with #cfc23c in the Color Lab