Skip to content

#cfcf4e

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

RGB
207, 207, 78
HSL
60°, 57%, 56%
CMYK
0, 0, 62, 19
Luminance
0.5844

At a glance

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

Hex
#cfcf4e
Hue
60°
yellow
Saturation
57%
vivid
Lightness
56%
balanced
Brightness
81%
HSV value
Perceived
77%
weighted brightness
Luminance
0.5844
WCAG relative
Temperature
Warm
25/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
12.69:1
Closest name
Khaki
ΔE2000 8.2
Where it sits
Hue60° of 360°
Saturation57%
Lightness56%
Temperature
Warm ← → Cool25% 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#cfcf4e
RGBrgb(207, 207, 78)
HSLhsl(60, 57%, 56%)
CMYKcmyk(0%, 0%, 62%, 19%)
LABlab(81.0 -16.0 61.9)
LCHlch(81.0 64.0 104.5)
OKLCHoklch(0.831 0.149 109.2)
Decimal13619022
Display P3color(display-p3 0.812 0.812 0.306)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfcf4e on white: 1.66:1
AA ✗ fail · AA-large · AAA
Aa
#cfcf4e on black: 12.69:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #DFC73E
deuteranopia · #E0CB56
tritanopia · #DDC3B4

Color scale — 50 to 950

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

#FBFBF4
#F7F7E9
#EFEFCD
#E7E7A7
#DBDB7B
#cfcf4e
#C1C134
#A0A02C
#808023
#5D5D1D
#3A3A12
Base = 500Lightest = 50 · #FBFBF4Darkest = 950 · #3A3A12
:root {
  --brand-50: #FBFBF4;
  --brand-100: #F7F7E9;
  --brand-200: #EFEFCD;
  --brand-300: #E7E7A7;
  --brand-400: #DBDB7B;
  --brand-500: #cfcf4e;
  --brand-600: #C1C134;
  --brand-700: #A0A02C;
  --brand-800: #808023;
  --brand-900: #5D5D1D;
  --brand-950: #3A3A12;
  --brand: #cfcf4e;
  --brand-ink: #000000;
}

Colors that work with #cfcf4e

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#EDEDC0
Hairlines and dividers
Muted text#9B9B4B
Captions on the surface
Accent#4A6CD3
Second voice, not a rival
Dark variant#64641B
Hover, pressed, headers
Light variant#FAFAEB
Selected rows, tints
Dark surface#242414
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 #cfcf4e

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#4E4ECF
Analogous left#CF8F4E
Analogous right#8FCF4E
Split-complement 1#4E8FCF
Split-complement 2#8F4ECF
Triadic 1#4ECFCF
Triadic 2#CF4ECF
Tetradic#4ECF8F

RGB percentages

Red81.2%
Green81.2%
Blue30.6%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow62.3%
Key (black)18.8%

Color previews

#cfcf4e text on a black background

contrast 12.69:1

Card sample

#cfcf4e text on a white background

contrast 1.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cfcf4e

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.

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

#cfcf4e, answered

What color is #cfcf4e?

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

What is the RGB value of #cfcf4e?

rgb(207, 207, 78) — 207 red, 207 green and 78 blue out of 255, or 81.2% / 81.2% / 30.6% by channel.

Is #cfcf4e a light or a dark color?

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

Should I use black or white text on #cfcf4e?

Black. It scores 12.69:1 against #cfcf4e, versus 1.66:1 for white — AAA at any size.

What is the complementary color of #cfcf4e?

#4E4ECF sits directly opposite on the wheel. Softer options are the split-complements #4E8FCF and #8F4ECF, which give the same contrast with far less vibration.

What colors go well with #cfcf4e?

For interface work: #FAFAF4 as the surface, #EDEDC0 for borders, #9B9B4B for secondary text, #4A6CD3 as an accent and #64641B for hover and pressed states. For a palette, the analogous pair #CF8F4E and #8FCF4E stays calm, while #4E4ECF is the loudest partner.

What is #cfcf4e in CMYK for printing?

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

Is #cfcf4e warm or cool?

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

Work with #cfcf4e in the Color Lab