#CAC841#CAC841

#CAC841 is a light, vivid yellow. Relative luminance 0.542; OKLCH L 81.0% C 0.152 H 108.5°. Best body text is #000000 at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#CAC841
RGBrgb(202, 200, 65)
HSLhsl(59, 56%, 52%)
HSVhsv(59, 68%, 79%)
CMYKcmyk(0%, 1%, 67.8%, 20.8%)
CIE-LABlab(78.61, -15.32, 64.51)
CIE-LCHlch(78.61, 66.30, 103.36°)
OKLaboklab(81.03% -0.0483 0.1442)
OKLCHoklch(81.03% 0.152 108.5)
XYZxyz(45.9672, 54.2482, 13.0496)
Luminance0.5425 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC841 #4143CA
analogous
#CA8341 #CAC841 #88CA41
triadic
#CAC841 #41CAC8 #C841CA
tetradic
#CAC841 #41CA83 #4143CA #CA4188
square
#CAC841 #41CA83 #4143CA #CA4188
split-complementary
#CAC841 #4188CA #8341CA
monochromatic
#717020 #A19F2D #CAC841 #D7D671 #E5E4A1

Accessibility & contrast

On white

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

On black

11.85
#CAC841 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC841
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC841#FFFFFF#000000##000000
##CAC8411.001.7711.8511.85
#FFFFFF1.771.0021.0021.00
#00000011.8521.001.001.00
##00000011.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C02C
Deuteranopia (green-blind)
#DAC54A
Tritanopia (blue-blind)
#D8BBAD
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cac841;
/* rgb */ color: rgb(202, 200, 65);
/* oklch */ color: oklch(81.0% 0.152 108.5);
Tailwind
colors: {
  custom: {
    50: '#ded87d',
    500: '#cac841',
    950: '#000000',
  },
}
SCSS
$custom: #cac841;
$custom-light: #ded87d;
$custom-dark: #000000;
JSON
{
  "hex": "#cac841",
  "rgb": {
    "r": 202,
    "g": 200,
    "b": 65
  },
  "hsl": {
    "h": 59.124,
    "s": 56.379,
    "l": 52.353
  },
  "oklch": {
    "l": 0.8103,
    "c": 0.15206,
    "h": 108.5
  },
  "luminance": 0.54247
}

Semantic roles & 50–950 ramp

primary
#CAC841
secondary
#35367A
accent
#4AE048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CAC841

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

Preview Lab → · Contrast checker → · Palette generator →

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