Skip to content

#cfc23f

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

RGB
207, 194, 63
HSL
55°, 60%, 53%
CMYK
0, 6, 70, 19
Luminance
0.5221

At a glance

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

Hex
#cfc23f
Hue
55°
yellow
Saturation
60%
vivid
Lightness
53%
balanced
Brightness
81%
HSV value
Perceived
74%
weighted brightness
Luminance
0.5221
WCAG relative
Temperature
Warm
21/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
11.44:1
Closest name
Dark Khaki
ΔE2000 8.2
Where it sits
Hue55° of 360°
Saturation60%
Lightness53%
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#cfc23f
RGBrgb(207, 194, 63)
HSLhsl(55, 60%, 53%)
CMYKcmyk(0%, 6%, 70%, 19%)
LABlab(77.4 -10.3 64.2)
LCHlch(77.4 65.0 99.1)
OKLCHoklch(0.802 0.147 103.6)
Decimal13615679
Display P3color(display-p3 0.812 0.761 0.247)

Copy-ready code

/* CSS */
color: #cfc23f;
background-color: #cfc23f;
/* Tailwind (arbitrary) */
class="text-[#cfc23f] bg-[#cfc23f]"
/* SCSS */
$brand: #cfc23f;
/* SwiftUI */
Color(red: 0.812, green: 0.761, blue: 0.247)
/* Android */
Color.parseColor("#cfc23f")
/* Flutter */
Color(0xFFCFC23F)
/* Python / OpenCV (BGR) */
(63, 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 #cfc23f · 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: #cfc23f as text scores 1.84:1 on white and 11.44:1 on black.

Accessibility — WCAG contrast

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

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #cfc23f 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
#F7F6E9
#EFECCC
#E9E3A5
#DDD478
#cfc23f
#C4B731
#A39829
#837A21
#5F591B
#3B3811
Base = 500Lightest = 50 · #FBFAF4Darkest = 950 · #3B3811
:root {
  --brand-50: #FBFAF4;
  --brand-100: #F7F6E9;
  --brand-200: #EFECCC;
  --brand-300: #E9E3A5;
  --brand-400: #DDD478;
  --brand-500: #cfc23f;
  --brand-600: #C4B731;
  --brand-700: #A39829;
  --brand-800: #837A21;
  --brand-900: #5F591B;
  --brand-950: #3B3811;
  --brand: #cfc23f;
  --brand-ink: #000000;
}

Colors that work with #cfc23f

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#3A6ED4
Second voice, not a rival
Dark variant#665F1A
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 #cfc23f

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#3F4CCF
Analogous left#CF7A3F
Analogous right#94CF3F
Split-complement 1#3F94CF
Split-complement 2#7A3FCF
Triadic 1#3FCFC2
Triadic 2#C23FCF
Tetradic#3FCF7A

RGB percentages

Red81.2%
Green76.1%
Blue24.7%

CMYK percentages

Cyan0.0%
Magenta6.3%
Yellow69.6%
Key (black)18.8%

Color previews

#cfc23f text on a black background

contrast 11.44:1

Card sample

#cfc23f text on a white background

contrast 1.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cfc23f

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.

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

#cfc23f, answered

What color is #cfc23f?

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

What is the RGB value of #cfc23f?

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

Is #cfc23f a light or a dark color?

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

Should I use black or white text on #cfc23f?

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

What is the complementary color of #cfc23f?

#3F4CCF sits directly opposite on the wheel. Softer options are the split-complements #3F94CF and #7A3FCF, which give the same contrast with far less vibration.

What colors go well with #cfc23f?

For interface work: #FAFAF4 as the surface, #EDE9C0 for borders, #9B944B for secondary text, #3A6ED4 as an accent and #665F1A for hover and pressed states. For a palette, the analogous pair #CF7A3F and #94CF3F stays calm, while #3F4CCF is the loudest partner.

What is #cfc23f in CMYK for printing?

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

Is #cfc23f 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 #CF973F; nudged cooler, #A8D13C.

Work with #cfc23f in the Color Lab