Skip to content

#cacf8d

a light, soft yellow · warm · closest name: Dark Khaki

RGB
202, 207, 141
HSL
65°, 41%, 68%
CMYK
2, 0, 32, 19
Luminance
0.5911

At a glance

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

Hex
#cacf8d
Hue
65°
yellow
Saturation
41%
soft
Lightness
68%
light
Brightness
81%
HSV value
Perceived
78%
weighted brightness
Luminance
0.5911
WCAG relative
Temperature
Warm
29/100 cool
Color family
Yellow
Tone
Soft
Best ink
Black
12.82:1
Closest name
Dark Khaki
ΔE2000 7
Where it sits
Hue65° of 360°
Saturation41%
Lightness68%
Temperature
Warm ← → Cool29% 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#cacf8d
RGBrgb(202, 207, 141)
HSLhsl(65, 41%, 68%)
CMYKcmyk(2%, 0%, 32%, 19%)
LABlab(81.3 -12.1 32.3)
LCHlch(81.3 34.5 110.5)
OKLCHoklch(0.835 0.086 111.8)
Decimal13291405
Display P3color(display-p3 0.792 0.812 0.553)

Copy-ready code

/* CSS */
color: #cacf8d;
background-color: #cacf8d;
/* Tailwind (arbitrary) */
class="text-[#cacf8d] bg-[#cacf8d]"
/* SCSS */
$brand: #cacf8d;
/* SwiftUI */
Color(red: 0.792, green: 0.812, blue: 0.553)
/* Android */
Color.parseColor("#cacf8d")
/* Flutter */
Color(0xFFCACF8D)
/* Python / OpenCV (BGR) */
(141, 207, 202)

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 #cacf8d · 12.82:1
Use #000000AAA at every size.
Aa
White text · 1.64:1
AA fail · AA large fail · AAA fail
Aa
Black text · 12.82:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #cacf8d as text scores 1.64:1 on white and 12.82:1 on black.

Accessibility — WCAG contrast

Aa
#cacf8d on white: 1.64:1
AA ✗ fail · AA-large · AAA
Aa
#cacf8d on black: 12.82:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #D9C988
deuteranopia · #D9CB90
tritanopia · #D2C7BE

Color scale — 50 to 950

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

#F9FAF5
#F4F5EB
#E8EAD2
#DADEB0
#cacf8d
#B6BC61
#A5AC49
#89903C
#6E7330
#515426
#323518
Base = 400Lightest = 50 · #F9FAF5Darkest = 950 · #323518
:root {
  --brand-50: #F9FAF5;
  --brand-100: #F4F5EB;
  --brand-200: #E8EAD2;
  --brand-300: #DADEB0;
  --brand-400: #cacf8d;
  --brand-500: #B6BC61;
  --brand-600: #A5AC49;
  --brand-700: #89903C;
  --brand-800: #6E7330;
  --brand-900: #515426;
  --brand-950: #323518;
  --brand: #cacf8d;
  --brand-ink: #000000;
}

Colors that work with #cacf8d

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#E4E7C6
Hairlines and dividers
Muted text#959B4B
Captions on the surface
Accent#394893
Second voice, not a rival
Dark variant#565A26
Hover, pressed, headers
Light variant#F7F7ED
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 #cacf8d

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Text and icons on dark surfaces
  • Charts, tags and secondary surfaces
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • 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#928DCF
Analogous left#CFB38D
Analogous right#A9CF8D
Split-complement 1#8DA9CF
Split-complement 2#B38DCF
Triadic 1#8DCACF
Triadic 2#CF8DCA
Tetradic#8DCFB3

RGB percentages

Red79.2%
Green81.2%
Blue55.3%

CMYK percentages

Cyan2.4%
Magenta0.0%
Yellow31.9%
Key (black)18.8%

Color previews

#cacf8d text on a black background

contrast 12.82:1

Card sample

#cacf8d text on a white background

contrast 1.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cacf8d

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.

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

#cacf8d, answered

What color is #cacf8d?

#cacf8d is a light soft yellow, closest to Dark Khaki (ΔE2000 7). It sits at 65° on the hue wheel with 41% saturation and 68% lightness, which reads as warm.

What is the RGB value of #cacf8d?

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

Is #cacf8d a light or a dark color?

It is a light color. Relative luminance is 0.5911 and perceived brightness is 78%, so black text on it reaches 12.82:1.

Should I use black or white text on #cacf8d?

Black. It scores 12.82:1 against #cacf8d, versus 1.64:1 for white — AAA at any size.

What is the complementary color of #cacf8d?

#928DCF sits directly opposite on the wheel. Softer options are the split-complements #8DA9CF and #B38DCF, which give the same contrast with far less vibration.

What colors go well with #cacf8d?

For interface work: #FAFAF4 as the surface, #E4E7C6 for borders, #959B4B for secondary text, #394893 as an accent and #565A26 for hover and pressed states. For a palette, the analogous pair #CFB38D and #A9CF8D stays calm, while #928DCF is the loudest partner.

What is #cacf8d in CMYK for printing?

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

Is #cacf8d warm or cool?

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

Work with #cacf8d in the Color Lab