#CAC231#CAC231

#CAC231 is a light, vivid yellow. Relative luminance 0.514; OKLCH L 79.6% C 0.156 H 106.2°. Best body text is #000000 at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#CAC231
RGBrgb(202, 194, 49)
HSLhsl(57, 61%, 49%)
HSVhsv(57, 76%, 79%)
CMYKcmyk(0%, 4%, 75.7%, 20.8%)
CIE-LABlab(76.90, -13.04, 68.48)
CIE-LCHlch(76.90, 69.71, 100.78°)
OKLaboklab(79.64% -0.0434 0.1498)
OKLCHoklch(79.64% 0.156 106.2)
XYZxyz(44.2051, 51.3635, 10.4908)
Luminance0.5136 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC231 #3139CA
analogous
#CA7631 #CAC231 #86CA31
triadic
#CAC231 #31CAC2 #C231CA
tetradic
#CAC231 #31CA76 #3139CA #CA3186
square
#CAC231 #31CA76 #3139CA #CA3186
split-complementary
#CAC231 #3186CA #7631CA
monochromatic
#676319 #999325 #CAC231 #D8D260 #E4E091

Accessibility & contrast

On white

1.86
#CAC231 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.27
#CAC231 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC231
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC231#FFFFFF#000000##000000
##CAC2311.001.8611.2711.27
#FFFFFF1.861.0021.0021.00
#00000011.2721.001.001.00
##00000011.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BB0D
Deuteranopia (green-blind)
#D6C03D
Tritanopia (blue-blind)
#D9B5A7
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cac231;
/* rgb */ color: rgb(202, 194, 49);
/* oklch */ color: oklch(79.6% 0.156 106.2);
Tailwind
colors: {
  custom: {
    50: '#ded475',
    500: '#cac231',
    950: '#000000',
  },
}
SCSS
$custom: #cac231;
$custom-light: #ded475;
$custom-dark: #000000;
JSON
{
  "hex": "#cac231",
  "rgb": {
    "r": 202,
    "g": 194,
    "b": 49
  },
  "hsl": {
    "h": 56.863,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.79639,
    "c": 0.15594,
    "h": 106.2
  },
  "luminance": 0.51362
}

Semantic roles & 50–950 ramp

primary
#CAC231
secondary
#2E3172
accent
#4CE444
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CAC231

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

Preview Lab → · Contrast checker → · Palette generator →

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