#CAC831#CAC831

#CAC831 is a light, vivid yellow. Relative luminance 0.541; OKLCH L 80.9% C 0.161 H 108.7°. Best body text is #000000 at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#CAC831
RGBrgb(202, 200, 49)
HSLhsl(59, 61%, 49%)
HSVhsv(59, 76%, 79%)
CMYKcmyk(0%, 1%, 75.7%, 20.8%)
CIE-LABlab(78.51, -16.06, 69.96)
CIE-LCHlch(78.51, 71.78, 102.92°)
OKLaboklab(80.93% -0.0519 0.1529)
OKLCHoklch(80.93% 0.161 108.7)
XYZxyz(45.5675, 54.0883, 10.9449)
Luminance0.5409 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC831 #3133CA
analogous
#CA7C31 #CAC831 #80CA31
triadic
#CAC831 #31CAC8 #C831CA
tetradic
#CAC831 #31CA7C #3133CA #CA3180
square
#CAC831 #31CA7C #3133CA #CA3180
split-complementary
#CAC831 #3180CA #7C31CA
monochromatic
#676619 #999725 #CAC831 #D8D760 #E4E391

Accessibility & contrast

On white

1.78
#CAC831 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.82
#CAC831 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC831
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC831#FFFFFF#000000##000000
##CAC8311.001.7811.8211.82
#FFFFFF1.781.0021.0021.00
#00000011.8221.001.001.00
##00000011.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C007
Deuteranopia (green-blind)
#DBC53E
Tritanopia (blue-blind)
#D9BBAC
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cac831;
/* rgb */ color: rgb(202, 200, 49);
/* oklch */ color: oklch(80.9% 0.161 108.7);
Tailwind
colors: {
  custom: {
    50: '#ded875',
    500: '#cac831',
    950: '#000000',
  },
}
SCSS
$custom: #cac831;
$custom-light: #ded875;
$custom-dark: #000000;
JSON
{
  "hex": "#cac831",
  "rgb": {
    "r": 202,
    "g": 200,
    "b": 49
  },
  "hsl": {
    "h": 59.216,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.80926,
    "c": 0.16148,
    "h": 108.7
  },
  "luminance": 0.54087
}

Semantic roles & 50–950 ramp

primary
#CAC831
secondary
#2E2F72
accent
#46E444
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CAC831

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

Preview Lab → · Contrast checker → · Palette generator →

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