#cacf8d
a light, soft yellow · warm · closest name: Dark Khaki
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.
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 |
| RGB | rgb(202, 207, 141) |
| HSL | hsl(65, 41%, 68%) |
| CMYK | cmyk(2%, 0%, 32%, 19%) |
| LAB | lab(81.3 -12.1 32.3) |
| LCH | lch(81.3 34.5 110.5) |
| OKLCH | oklch(0.835 0.086 111.8) |
| Decimal | 13291405 |
| Display P3 | color(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.
Accessibility — WCAG contrast
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.
: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.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
How to use #cacf8d
Derived from its contrast, chroma and lightness — not from taste.
- ✓Text and icons on dark surfaces
- ✓Charts, tags and secondary surfaces
- ✓Card and section backgrounds
- ✓Brand accents, badges and data highlights
- ⚠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 | Directly opposite — maximum tension | |
| Analogous left | #CFB38D | Neighbour, quieter | |
| Analogous right | #A9CF8D | Neighbour, quieter | |
| Split-complement 1 | #8DA9CF | Contrast without the clash | |
| Split-complement 2 | #B38DCF | Contrast without the clash | |
| Triadic 1 | #8DCACF | Even thirds — balanced and loud | |
| Triadic 2 | #CF8DCA | Even thirds — balanced and loud | |
| Tetradic | #8DCFB3 | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#cacf8d text on a black background
contrast 12.82:1
#cacf8d text on a white background
contrast 1.64:1
CSS3 live lab
The quick brown fox
color: #cacf8d;
background-color: #cacf8d;
Glowing headline
text-shadow: 2px 2px 8px #cacf8d;
Soft neon halo
text-shadow: 0 0 14px rgba(202, 207, 141, 0.45);
box-shadow: 0 12px 32px -8px rgba(202, 207, 141, 0.45);
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.
Closest color with a full write-up: Sand (#c2b280) — ΔE2000 9.7 away, with its history, psychology and brand usage.
#cacf8d in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
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.