#CAC151#CAC151

#CAC151 is a light, vivid yellow. Relative luminance 0.513; OKLCH L 79.7% C 0.133 H 104.7°. Best body text is #000000 at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#CAC151
RGBrgb(202, 193, 81)
HSLhsl(56, 53%, 55%)
HSVhsv(56, 60%, 79%)
CMYKcmyk(0%, 4.5%, 59.9%, 20.8%)
CIE-LABlab(76.86, -10.79, 56.08)
CIE-LCHlch(76.86, 57.11, 100.89°)
OKLaboklab(79.68% -0.0338 0.1288)
OKLCHoklch(79.68% 0.133 104.7)
XYZxyz(44.9138, 51.2921, 15.3175)
Luminance0.5129 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC151 #515ACA
analogous
#CA8451 #CAC151 #96CA51
triadic
#CAC151 #51CAC1 #C151CA
tetradic
#CAC151 #51CA84 #515ACA #CA5196
square
#CAC151 #51CA84 #515ACA #CA5196
split-complementary
#CAC151 #5196CA #8451CA
monochromatic
#7B7525 #AAA134 #CAC151 #D8D280 #E7E2AF

Accessibility & contrast

On white

1.87
#CAC151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.26
#CAC151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC151
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC151#FFFFFF#000000##000000
##CAC1511.001.8711.2611.26
#FFFFFF1.871.0021.0021.00
#00000011.2621.001.001.00
##00000011.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BB44
Deuteranopia (green-blind)
#D4C057
Tritanopia (blue-blind)
#D8B5A9
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cac151;
/* rgb */ color: rgb(202, 193, 81);
/* oklch */ color: oklch(79.7% 0.133 104.7);
Tailwind
colors: {
  custom: {
    50: '#ddd386',
    500: '#cac151',
    950: '#000000',
  },
}
SCSS
$custom: #cac151;
$custom-light: #ddd386;
$custom-dark: #000000;
JSON
{
  "hex": "#cac151",
  "rgb": {
    "r": 202,
    "g": 193,
    "b": 81
  },
  "hsl": {
    "h": 55.537,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.79676,
    "c": 0.13312,
    "h": 104.7
  },
  "luminance": 0.51291
}

Semantic roles & 50–950 ramp

primary
#CAC151
secondary
#3C4183
accent
#56DD4B
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140B
muted
#84837E

Preview Lab

Preview with #CAC151

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

Preview Lab → · Contrast checker → · Palette generator →

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