Skip to content

#cacf5d

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

RGB
202, 207, 93
HSL
63°, 54%, 59%
CMYK
2, 0, 55, 19
Luminance
0.5797

At a glance

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

Hex
#cacf5d
Hue
63°
yellow
Saturation
54%
vivid
Lightness
59%
balanced
Brightness
81%
HSV value
Perceived
77%
weighted brightness
Luminance
0.5797
WCAG relative
Temperature
Warm
27/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
12.59:1
Closest name
Khaki
ΔE2000 7.9
Where it sits
Hue63° of 360°
Saturation54%
Lightness59%
Temperature
Warm ← → Cool27% 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#cacf5d
RGBrgb(202, 207, 93)
HSLhsl(63, 54%, 59%)
CMYKcmyk(2%, 0%, 55%, 19%)
LABlab(80.7 -17.0 55.0)
LCHlch(80.7 57.6 107.1)
OKLCHoklch(0.828 0.137 111.3)
Decimal13291357
Display P3color(display-p3 0.792 0.812 0.365)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cacf5d on white: 1.67:1
AA ✗ fail · AA-large · AAA
Aa
#cacf5d on black: 12.59:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #DDC751
deuteranopia · #DECA63
tritanopia · #D6C4B6

Color scale — 50 to 950

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

#FAFBF4
#F6F6E9
#ECEECE
#E3E5A8
#D5D97D
#cacf5d
#B7BD38
#999D2F
#7A7E25
#595C1F
#383913
Base = 500Lightest = 50 · #FAFBF4Darkest = 950 · #383913
:root {
  --brand-50: #FAFBF4;
  --brand-100: #F6F6E9;
  --brand-200: #ECEECE;
  --brand-300: #E3E5A8;
  --brand-400: #D5D97D;
  --brand-500: #cacf5d;
  --brand-600: #B7BD38;
  --brand-700: #999D2F;
  --brand-800: #7A7E25;
  --brand-900: #595C1F;
  --brand-950: #383913;
  --brand: #cacf5d;
  --brand-ink: #000000;
}

Colors that work with #cacf5d

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#EAECC0
Hairlines and dividers
Muted text#979B4B
Captions on the surface
Accent#5972D3
Second voice, not a rival
Dark variant#5F621D
Hover, pressed, headers
Light variant#F9F9EB
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 #cacf5d

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#625DCF
Analogous left#CF9B5D
Analogous right#91CF5D
Split-complement 1#5D91CF
Split-complement 2#9B5DCF
Triadic 1#5DCACF
Triadic 2#CF5DCA
Tetradic#5DCF9B

RGB percentages

Red79.2%
Green81.2%
Blue36.5%

CMYK percentages

Cyan2.4%
Magenta0.0%
Yellow55.1%
Key (black)18.8%

Color previews

#cacf5d text on a black background

contrast 12.59:1

Card sample

#cacf5d text on a white background

contrast 1.67:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cacf5d

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.

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

#cacf5d, answered

What color is #cacf5d?

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

What is the RGB value of #cacf5d?

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

Is #cacf5d a light or a dark color?

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

Should I use black or white text on #cacf5d?

Black. It scores 12.59:1 against #cacf5d, versus 1.67:1 for white — AAA at any size.

What is the complementary color of #cacf5d?

#625DCF sits directly opposite on the wheel. Softer options are the split-complements #5D91CF and #9B5DCF, which give the same contrast with far less vibration.

What colors go well with #cacf5d?

For interface work: #FAFAF4 as the surface, #EAECC0 for borders, #979B4B for secondary text, #5972D3 as an accent and #5F621D for hover and pressed states. For a palette, the analogous pair #CF9B5D and #91CF5D stays calm, while #625DCF is the loudest partner.

What is #cacf5d in CMYK for printing?

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

Is #cacf5d warm or cool?

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

Work with #cacf5d in the Color Lab