Skip to content

#cfca7c

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

RGB
207, 202, 124
HSL
56°, 46%, 65%
CMYK
0, 2, 40, 19
Luminance
0.5696

At a glance

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

Hex
#cfca7c
Hue
56°
yellow
Saturation
46%
vivid
Lightness
65%
balanced
Brightness
81%
HSV value
Perceived
77%
weighted brightness
Luminance
0.5696
WCAG relative
Temperature
Warm
22/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
12.39:1
Closest name
Dark Khaki
ΔE2000 4.9
Where it sits
Hue56° of 360°
Saturation46%
Lightness65%
Temperature
Warm ← → Cool22% 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#cfca7c
RGBrgb(207, 202, 124)
HSLhsl(56, 46%, 65%)
CMYKcmyk(0%, 2%, 40%, 19%)
LABlab(80.2 -9.5 39.5)
LCHlch(80.2 40.6 103.6)
OKLCHoklch(0.826 0.100 105.2)
Decimal13617788
Display P3color(display-p3 0.812 0.792 0.486)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfca7c on white: 1.69:1
AA ✗ fail · AA-large · AAA
Aa
#cfca7c on black: 12.39:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #D6C576
deuteranopia · #D9C97F
tritanopia · #DAC1B7

Color scale — 50 to 950

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

#FAFAF5
#F5F5EA
#EBEAD0
#E1DEAD
#cfca7c
#C3BD5B
#B3AC42
#959037
#77732C
#575423
#373516
Base = 400Lightest = 50 · #FAFAF5Darkest = 950 · #373516
:root {
  --brand-50: #FAFAF5;
  --brand-100: #F5F5EA;
  --brand-200: #EBEAD0;
  --brand-300: #E1DEAD;
  --brand-400: #cfca7c;
  --brand-500: #C3BD5B;
  --brand-600: #B3AC42;
  --brand-700: #959037;
  --brand-800: #77732C;
  --brand-900: #575423;
  --brand-950: #373516;
  --brand: #cfca7c;
  --brand-ink: #000000;
}

Colors that work with #cfca7c

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#E9E7C3
Hairlines and dividers
Muted text#9B964B
Captions on the surface
Accent#32529A
Second voice, not a rival
Dark variant#5D5A22
Hover, pressed, headers
Light variant#F8F7EC
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 #cfca7c

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#7C81CF
Analogous left#CFA17C
Analogous right#AACF7C
Split-complement 1#7CAACF
Split-complement 2#A17CCF
Triadic 1#7CCFCA
Triadic 2#CA7CCF
Tetradic#7CCFA1

RGB percentages

Red81.2%
Green79.2%
Blue48.6%

CMYK percentages

Cyan0.0%
Magenta2.4%
Yellow40.1%
Key (black)18.8%

Color previews

#cfca7c text on a black background

contrast 12.39:1

Card sample

#cfca7c text on a white background

contrast 1.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cfca7c

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.

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

#cfca7c, answered

What color is #cfca7c?

#cfca7c is a balanced vivid yellow, closest to Dark Khaki (ΔE2000 4.9). It sits at 56° on the hue wheel with 46% saturation and 65% lightness, which reads as warm.

What is the RGB value of #cfca7c?

rgb(207, 202, 124) — 207 red, 202 green and 124 blue out of 255, or 81.2% / 79.2% / 48.6% by channel.

Is #cfca7c a light or a dark color?

It is a light color. Relative luminance is 0.5696 and perceived brightness is 77%, so black text on it reaches 12.39:1.

Should I use black or white text on #cfca7c?

Black. It scores 12.39:1 against #cfca7c, versus 1.69:1 for white — AAA at any size.

What is the complementary color of #cfca7c?

#7C81CF sits directly opposite on the wheel. Softer options are the split-complements #7CAACF and #A17CCF, which give the same contrast with far less vibration.

What colors go well with #cfca7c?

For interface work: #FAFAF4 as the surface, #E9E7C3 for borders, #9B964B for secondary text, #32529A as an accent and #5D5A22 for hover and pressed states. For a palette, the analogous pair #CFA17C and #AACF7C stays calm, while #7C81CF is the loudest partner.

What is #cfca7c in CMYK for printing?

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

Is #cfca7c warm or cool?

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

Work with #cfca7c in the Color Lab