#CAC87F#CAC87F

#CAC87F is a light, moderate yellow. Relative luminance 0.554; OKLCH L 81.8% C 0.094 H 107.0°. Best body text is #000000 at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#CAC87F
RGBrgb(202, 200, 127)
HSLhsl(58, 41%, 65%)
HSVhsv(58, 37%, 79%)
CMYKcmyk(0%, 1%, 37.1%, 20.8%)
CIE-LABlab(79.27, -10.16, 36.78)
CIE-LCHlch(79.27, 38.16, 105.44°)
OKLaboklab(81.77% -0.0275 0.0901)
OKLCHoklch(81.77% 0.094 107)
XYZxyz(48.8428, 55.3984, 28.1946)
Luminance0.5540 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC87F #7F81CA
analogous
#CAA37F #CAC87F #A7CA7F
triadic
#CAC87F #7FCAC8 #C87FCA
tetradic
#CAC87F #7FCAA3 #7F81CA #CA7FA7
square
#CAC87F #7FCAA3 #7F81CA #CA7FA7
split-complementary
#CAC87F #7FA7CA #A37FCA
monochromatic
#92903C #B8B554 #CAC87F #DCDBAA #EEEDD6

Accessibility & contrast

On white

1.74
#CAC87F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.08
#CAC87F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC87F
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC87F#FFFFFF#000000##000000
##CAC87F1.001.7412.0812.08
#FFFFFF1.741.0021.0021.00
#00000012.0821.001.001.00
##00000012.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3C37A
Deuteranopia (green-blind)
#D5C682
Tritanopia (blue-blind)
#D4BFB6
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cac87f;
/* rgb */ color: rgb(202, 200, 127);
/* oklch */ color: oklch(81.8% 0.094 107.0);
Tailwind
colors: {
  custom: {
    50: '#dbd8a5',
    500: '#cac87f',
    950: '#000000',
  },
}
SCSS
$custom: #cac87f;
$custom-light: #dbd8a5;
$custom-dark: #000000;
JSON
{
  "hex": "#cac87f",
  "rgb": {
    "r": 202,
    "g": 200,
    "b": 127
  },
  "hsl": {
    "h": 58.4,
    "s": 41.436,
    "l": 64.51
  },
  "oklch": {
    "l": 0.81773,
    "c": 0.09425,
    "h": 107
  },
  "luminance": 0.55397
}

Semantic roles & 50–950 ramp

primary
#CAC87F
secondary
#545699
accent
#35B431
background
#FEFEFC
surface
#FCFBF6
border
#D5D4D0
text
#15140F
muted
#848380

Preview Lab

Preview with #CAC87F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#CAC87F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva