Skip to content

#cfd481

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

RGB
207, 212, 129
HSL
64°, 49%, 67%
CMYK
2, 0, 39, 17
Luminance
0.6194

At a glance

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

Hex
#cfd481
Hue
64°
yellow
Saturation
49%
vivid
Lightness
67%
light
Brightness
83%
HSV value
Perceived
79%
weighted brightness
Luminance
0.6194
WCAG relative
Temperature
Warm
28/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
13.39:1
Closest name
Khaki
ΔE2000 6.3
Where it sits
Hue64° of 360°
Saturation49%
Lightness67%
Temperature
Warm ← → Cool28% 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#cfd481
RGBrgb(207, 212, 129)
HSLhsl(64, 49%, 67%)
CMYKcmyk(2%, 0%, 39%, 17%)
LABlab(82.9 -14.1 40.5)
LCHlch(82.9 42.8 109.1)
OKLCHoklch(0.848 0.106 111.4)
Decimal13620353
Display P3color(display-p3 0.812 0.831 0.506)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfd481 on white: 1.57:1
AA ✗ fail · AA-large · AAA
Aa
#cfd481 on black: 13.39:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #E0CD7B
deuteranopia · #E0D085
tritanopia · #D9CBC0

Color scale — 50 to 950

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

#FAFAF4
#F5F6EA
#EAECD0
#DFE2AB
#cfd481
#BFC658
#AFB63E
#929834
#757A2A
#565922
#353815
Base = 400Lightest = 50 · #FAFAF4Darkest = 950 · #353815
:root {
  --brand-50: #FAFAF4;
  --brand-100: #F5F6EA;
  --brand-200: #EAECD0;
  --brand-300: #DFE2AB;
  --brand-400: #cfd481;
  --brand-500: #BFC658;
  --brand-600: #AFB63E;
  --brand-700: #929834;
  --brand-800: #757A2A;
  --brand-900: #565922;
  --brand-950: #353815;
  --brand: #cfd481;
  --brand-ink: #000000;
}

Colors that work with #cfd481

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#E8EAC2
Hairlines and dividers
Muted text#969B4B
Captions on the surface
Accent#30459C
Second voice, not a rival
Dark variant#5B5F20
Hover, pressed, headers
Light variant#F8F9EC
Selected rows, tints
Dark surface#232414
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 #cfd481

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
  • Card and section backgrounds
  • 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
  • White text placed on it
  • 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#8681D4
Analogous left#D4B081
Analogous right#A6D481
Split-complement 1#81A6D4
Split-complement 2#B081D4
Triadic 1#81CFD4
Triadic 2#D481CF
Tetradic#81D4B0

RGB percentages

Red81.2%
Green83.1%
Blue50.6%

CMYK percentages

Cyan2.4%
Magenta0.0%
Yellow39.2%
Key (black)16.9%

Color previews

#cfd481 text on a black background

contrast 13.39:1

Card sample

#cfd481 text on a white background

contrast 1.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(207, 212, 129, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(207, 212, 129, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cfd481;
background: linear-gradient(135deg, #cfd481, #98D481);

Monochromatic scale

Palettes built from #cfd481

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.

#cfd481 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
SurfacesBadgesHighlightsEmpty states
Print note

Converts to four-color process without much drama. Proof it anyway.

#cfd481, answered

What color is #cfd481?

#cfd481 is a light vivid yellow, closest to Khaki (ΔE2000 6.3). It sits at 64° on the hue wheel with 49% saturation and 67% lightness, which reads as warm.

What is the RGB value of #cfd481?

rgb(207, 212, 129) — 207 red, 212 green and 129 blue out of 255, or 81.2% / 83.1% / 50.6% by channel.

Is #cfd481 a light or a dark color?

It is a light color. Relative luminance is 0.6194 and perceived brightness is 79%, so black text on it reaches 13.39:1.

Should I use black or white text on #cfd481?

Black. It scores 13.39:1 against #cfd481, versus 1.57:1 for white — AAA at any size.

What is the complementary color of #cfd481?

#8681D4 sits directly opposite on the wheel. Softer options are the split-complements #81A6D4 and #B081D4, which give the same contrast with far less vibration.

What colors go well with #cfd481?

For interface work: #FAFAF4 as the surface, #E8EAC2 for borders, #969B4B for secondary text, #30459C as an accent and #5B5F20 for hover and pressed states. For a palette, the analogous pair #D4B081 and #A6D481 stays calm, while #8681D4 is the loudest partner.

What is #cfd481 in CMYK for printing?

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

Is #cfd481 warm or cool?

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

Work with #cfd481 in the Color Lab