#CAC851#CAC851

#CAC851 is a light, vivid yellow. Relative luminance 0.545; OKLCH L 81.2% C 0.140 H 108.2°. Best body text is #000000 at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#CAC851
RGBrgb(202, 200, 81)
HSLhsl(59, 53%, 55%)
HSVhsv(59, 60%, 79%)
CMYKcmyk(0%, 1%, 59.9%, 20.8%)
CIE-LABlab(78.73, -14.34, 58.13)
CIE-LCHlch(78.73, 59.87, 103.86°)
OKLaboklab(81.17% -0.0439 0.1331)
OKLCHoklch(81.17% 0.14 108.2)
XYZxyz(46.4980, 54.4605, 15.8456)
Luminance0.5446 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC851 #5153CA
analogous
#CA8B51 #CAC851 #90CA51
triadic
#CAC851 #51CAC8 #C851CA
tetradic
#CAC851 #51CA8B #5153CA #CA5190
square
#CAC851 #51CA8B #5153CA #CA5190
split-complementary
#CAC851 #5190CA #8B51CA
monochromatic
#7B7A25 #AAA834 #CAC851 #D8D780 #E7E6AF

Accessibility & contrast

On white

1.77
#CAC851 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.89
#CAC851 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC851
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC851#FFFFFF#000000##000000
##CAC8511.001.7711.8911.89
#FFFFFF1.771.0021.0021.00
#00000011.8921.001.001.00
##00000011.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C043
Deuteranopia (green-blind)
#D9C558
Tritanopia (blue-blind)
#D7BCAF
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cac851;
/* rgb */ color: rgb(202, 200, 81);
/* oklch */ color: oklch(81.2% 0.140 108.2);
Tailwind
colors: {
  custom: {
    50: '#ddd887',
    500: '#cac851',
    950: '#000000',
  },
}
SCSS
$custom: #cac851;
$custom-light: #ddd887;
$custom-dark: #000000;
JSON
{
  "hex": "#cac851",
  "rgb": {
    "r": 202,
    "g": 200,
    "b": 81
  },
  "hsl": {
    "h": 59.008,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.81168,
    "c": 0.14017,
    "h": 108.2
  },
  "luminance": 0.54459
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CAC851

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

Preview Lab → · Contrast checker → · Palette generator →

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