Skip to content

#cfdf5c

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

RGB
207, 223, 92
HSL
67°, 67%, 62%
CMYK
7, 0, 59, 13
Luminance
0.6681

At a glance

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

Hex
#cfdf5c
Hue
67°
yellow
Saturation
67%
vivid
Lightness
62%
balanced
Brightness
87%
HSV value
Perceived
81%
weighted brightness
Luminance
0.6681
WCAG relative
Temperature
Warm
31/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
14.36:1
Closest name
Khaki
ΔE2000 8.2
Where it sits
Hue67° of 360°
Saturation67%
Lightness62%
Temperature
Warm ← → Cool31% 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#cfdf5c
RGBrgb(207, 223, 92)
HSLhsl(67, 67%, 62%)
CMYKcmyk(7%, 0%, 59%, 13%)
LABlab(85.4 -22.9 60.8)
LCHlch(85.4 65.0 110.6)
OKLCHoklch(0.866 0.155 115.6)
Decimal13623132
Display P3color(display-p3 0.812 0.875 0.361)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfdf5c on white: 1.46:1
AA ✗ fail · AA-large · AAA
Aa
#cfdf5c on black: 14.36:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #EDD54D
deuteranopia · #ECD764
tritanopia · #DBD3C3

Color scale — 50 to 950

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

#FAFBF3
#F6F8E8
#EDF1CA
#E3EDA1
#cfdf5c
#C8DA43
#B9CD28
#9AAB21
#7B881B
#5A6317
#383E0F
Base = 400Lightest = 50 · #FAFBF3Darkest = 950 · #383E0F
:root {
  --brand-50: #FAFBF3;
  --brand-100: #F6F8E8;
  --brand-200: #EDF1CA;
  --brand-300: #E3EDA1;
  --brand-400: #cfdf5c;
  --brand-500: #C8DA43;
  --brand-600: #B9CD28;
  --brand-700: #9AAB21;
  --brand-800: #7B881B;
  --brand-900: #5A6317;
  --brand-950: #383E0F;
  --brand: #cfdf5c;
  --brand-ink: #000000;
}

Colors that work with #cfdf5c

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#E7EDC0
Hairlines and dividers
Muted text#919B4B
Captions on the surface
Accent#586AE3
Second voice, not a rival
Dark variant#606B15
Hover, pressed, headers
Light variant#F9FBEA
Selected rows, tints
Dark surface#222414
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 #cfdf5c

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#6C5CDF
Analogous left#DFAE5C
Analogous right#8EDF5C
Split-complement 1#5C8EDF
Split-complement 2#AE5CDF
Triadic 1#5CCFDF
Triadic 2#DF5CCF
Tetradic#5CDFAE

RGB percentages

Red81.2%
Green87.5%
Blue36.1%

CMYK percentages

Cyan7.2%
Magenta0.0%
Yellow58.7%
Key (black)12.5%

Color previews

#cfdf5c text on a black background

contrast 14.36:1

Card sample

#cfdf5c text on a white background

contrast 1.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(207, 223, 92, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(207, 223, 92, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cfdf5c;
background: linear-gradient(135deg, #cfdf5c, #78DF5C);

Monochromatic scale

Palettes built from #cfdf5c

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.

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

#cfdf5c, answered

What color is #cfdf5c?

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

What is the RGB value of #cfdf5c?

rgb(207, 223, 92) — 207 red, 223 green and 92 blue out of 255, or 81.2% / 87.5% / 36.1% by channel.

Is #cfdf5c a light or a dark color?

It is a light color. Relative luminance is 0.6681 and perceived brightness is 81%, so black text on it reaches 14.36:1.

Should I use black or white text on #cfdf5c?

Black. It scores 14.36:1 against #cfdf5c, versus 1.46:1 for white — AAA at any size.

What is the complementary color of #cfdf5c?

#6C5CDF sits directly opposite on the wheel. Softer options are the split-complements #5C8EDF and #AE5CDF, which give the same contrast with far less vibration.

What colors go well with #cfdf5c?

For interface work: #FAFAF4 as the surface, #E7EDC0 for borders, #919B4B for secondary text, #586AE3 as an accent and #606B15 for hover and pressed states. For a palette, the analogous pair #DFAE5C and #8EDF5C stays calm, while #6C5CDF is the loudest partner.

What is #cfdf5c in CMYK for printing?

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

Is #cfdf5c warm or cool?

Warm — it scores 31 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #DFBF5C; nudged cooler, #9FE15A.

Work with #cfdf5c in the Color Lab