Skip to content

#cfcc34

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

RGB
207, 204, 52
HSL
59°, 62%, 51%
CMYK
0, 1, 75, 19
Luminance
0.5670

At a glance

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

Hex
#cfcc34
Hue
59°
yellow
Saturation
62%
vivid
Lightness
51%
balanced
Brightness
81%
HSV value
Perceived
76%
weighted brightness
Luminance
0.5670
WCAG relative
Temperature
Warm
24/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
12.34:1
Closest name
Khaki
ΔE2000 9.9
Where it sits
Hue59° of 360°
Saturation62%
Lightness51%
Temperature
Warm ← → Cool24% 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#cfcc34
RGBrgb(207, 204, 52)
HSLhsl(59, 62%, 51%)
CMYKcmyk(0%, 1%, 75%, 19%)
LABlab(80.0 -15.8 70.5)
LCHlch(80.0 72.3 102.6)
OKLCHoklch(0.822 0.163 108.3)
Decimal13618228
Display P3color(display-p3 0.812 0.800 0.204)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfcc34 on white: 1.70:1
AA ✗ fail · AA-large · AAA
Aa
#cfcc34 on black: 12.34:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #DDC40F
deuteranopia · #DFC940
tritanopia · #DEBFAF

Color scale — 50 to 950

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

#FBFBF4
#F7F7E8
#F0EFCC
#EAE8A4
#DFDD77
#D4D149
#cfcc34
#A5A327
#84821F
#605F1A
#3C3B11
Base = 600Lightest = 50 · #FBFBF4Darkest = 950 · #3C3B11
:root {
  --brand-50: #FBFBF4;
  --brand-100: #F7F7E8;
  --brand-200: #F0EFCC;
  --brand-300: #EAE8A4;
  --brand-400: #DFDD77;
  --brand-500: #D4D149;
  --brand-600: #cfcc34;
  --brand-700: #A5A327;
  --brand-800: #84821F;
  --brand-900: #605F1A;
  --brand-950: #3C3B11;
  --brand: #cfcc34;
  --brand-ink: #000000;
}

Colors that work with #cfcc34

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#EDECC0
Hairlines and dividers
Muted text#9B994B
Captions on the surface
Accent#2F5CD4
Second voice, not a rival
Dark variant#676618
Hover, pressed, headers
Light variant#FAFAEA
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 #cfcc34

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#3437CF
Analogous left#CF7E34
Analogous right#85CF34
Split-complement 1#3485CF
Split-complement 2#7E34CF
Triadic 1#34CFCC
Triadic 2#CC34CF
Tetradic#34CF7E

RGB percentages

Red81.2%
Green80.0%
Blue20.4%

CMYK percentages

Cyan0.0%
Magenta1.4%
Yellow74.9%
Key (black)18.8%

Color previews

#cfcc34 text on a black background

contrast 12.34:1

Card sample

#cfcc34 text on a white background

contrast 1.70:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(207, 204, 52, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(207, 204, 52, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cfcc34;
background: linear-gradient(135deg, #cfcc34, #6BCF34);

Monochromatic scale

Palettes built from #cfcc34

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.

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

#cfcc34, answered

What color is #cfcc34?

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

What is the RGB value of #cfcc34?

rgb(207, 204, 52) — 207 red, 204 green and 52 blue out of 255, or 81.2% / 80% / 20.4% by channel.

Is #cfcc34 a light or a dark color?

It is a light color. Relative luminance is 0.5670 and perceived brightness is 76%, so black text on it reaches 12.34:1.

Should I use black or white text on #cfcc34?

Black. It scores 12.34:1 against #cfcc34, versus 1.70:1 for white — AAA at any size.

What is the complementary color of #cfcc34?

#3437CF sits directly opposite on the wheel. Softer options are the split-complements #3485CF and #7E34CF, which give the same contrast with far less vibration.

What colors go well with #cfcc34?

For interface work: #FAFAF4 as the surface, #EDECC0 for borders, #9B994B for secondary text, #2F5CD4 as an accent and #676618 for hover and pressed states. For a palette, the analogous pair #CF7E34 and #85CF34 stays calm, while #3437CF is the loudest partner.

What is #cfcc34 in CMYK for printing?

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

Is #cfcc34 warm or cool?

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

Work with #cfcc34 in the Color Lab