#CAC951#CAC951

#CAC951 is a light, vivid yellow. Relative luminance 0.549; OKLCH L 81.4% C 0.141 H 108.7°. Best body text is #000000 at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#CAC951
RGBrgb(202, 201, 81)
HSLhsl(60, 53%, 55%)
HSVhsv(60, 60%, 79%)
CMYKcmyk(0%, 0.5%, 59.9%, 20.8%)
CIE-LABlab(79.00, -14.84, 58.42)
CIE-LCHlch(79.00, 60.28, 104.26°)
OKLaboklab(81.38% -0.0453 0.1337)
OKLCHoklch(81.38% 0.141 108.7)
XYZxyz(46.7304, 54.9252, 15.9230)
Luminance0.5492 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC951 #5152CA
analogous
#CA8C51 #CAC951 #8ECA51
triadic
#CAC951 #51CAC9 #C951CA
tetradic
#CAC951 #51CA8C #5152CA #CA518E
square
#CAC951 #51CA8C #5152CA #CA518E
split-complementary
#CAC951 #518ECA #8C51CA
monochromatic
#7B7A25 #AAA934 #CAC951 #D8D880 #E7E6AF

Accessibility & contrast

On white

1.75
#CAC951 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.98
#CAC951 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC951
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC951#FFFFFF#000000##000000
##CAC9511.001.7511.9811.98
#FFFFFF1.751.0021.0021.00
#00000011.9821.001.001.00
##00000011.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C143
Deuteranopia (green-blind)
#DAC658
Tritanopia (blue-blind)
#D7BDB0
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cac951;
/* rgb */ color: rgb(202, 201, 81);
/* oklch */ color: oklch(81.4% 0.141 108.7);
Tailwind
colors: {
  custom: {
    50: '#ddd987',
    500: '#cac951',
    950: '#000000',
  },
}
SCSS
$custom: #cac951;
$custom-light: #ddd987;
$custom-dark: #000000;
JSON
{
  "hex": "#cac951",
  "rgb": {
    "r": 202,
    "g": 201,
    "b": 81
  },
  "hsl": {
    "h": 59.504,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.81382,
    "c": 0.14121,
    "h": 108.7
  },
  "luminance": 0.54924
}

Semantic roles & 50–950 ramp

primary
#CAC951
secondary
#3C3D83
accent
#4CDD4B
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#15140C
muted
#84837F

Preview Lab

Preview with #CAC951

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

Preview Lab → · Contrast checker → · Palette generator →

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