#CAC451#CAC451

#CAC451 is a light, vivid yellow. Relative luminance 0.526; OKLCH L 80.3% C 0.136 H 106.3°. Best body text is #000000 at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#CAC451
RGBrgb(202, 196, 81)
HSLhsl(57, 53%, 55%)
HSVhsv(57, 60%, 79%)
CMYKcmyk(0%, 3%, 59.9%, 20.8%)
CIE-LABlab(77.66, -12.32, 56.96)
CIE-LCHlch(77.66, 58.27, 102.20°)
OKLaboklab(80.31% -0.0381 0.1306)
OKLCHoklch(80.31% 0.136 106.3)
XYZxyz(45.5837, 52.6320, 15.5408)
Luminance0.5263 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC451 #5157CA
analogous
#CA8751 #CAC451 #93CA51
triadic
#CAC451 #51CAC4 #C451CA
tetradic
#CAC451 #51CA87 #5157CA #CA5193
square
#CAC451 #51CA87 #5157CA #CA5193
split-complementary
#CAC451 #5193CA #8751CA
monochromatic
#7B7725 #AAA434 #CAC451 #D8D480 #E7E4AF

Accessibility & contrast

On white

1.82
#CAC451 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.53
#CAC451 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC451
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC451#FFFFFF#000000##000000
##CAC4511.001.8211.5311.53
#FFFFFF1.821.0021.0021.00
#00000011.5321.001.001.00
##00000011.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BD44
Deuteranopia (green-blind)
#D6C258
Tritanopia (blue-blind)
#D8B8AB
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #cac451;
/* rgb */ color: rgb(202, 196, 81);
/* oklch */ color: oklch(80.3% 0.136 106.3);
Tailwind
colors: {
  custom: {
    50: '#ddd586',
    500: '#cac451',
    950: '#000000',
  },
}
SCSS
$custom: #cac451;
$custom-light: #ddd586;
$custom-dark: #000000;
JSON
{
  "hex": "#cac451",
  "rgb": {
    "r": 202,
    "g": 196,
    "b": 81
  },
  "hsl": {
    "h": 57.025,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.80314,
    "c": 0.13608,
    "h": 106.3
  },
  "luminance": 0.5263
}

Semantic roles & 50–950 ramp

primary
#CAC451
secondary
#3C3F83
accent
#52DD4B
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140B
muted
#84837E

Preview Lab

Preview with #CAC451

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

Preview Lab → · Contrast checker → · Palette generator →

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