#CAC22D#CAC22D

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

Color values

HEX#CAC22D
RGBrgb(202, 194, 45)
HSLhsl(57, 64%, 48%)
HSVhsv(57, 78%, 79%)
CMYKcmyk(0%, 4%, 77.7%, 20.8%)
CIE-LABlab(76.88, -13.19, 69.70)
CIE-LCHlch(76.88, 70.94, 100.71°)
OKLaboklab(79.62% -0.0442 0.1516)
OKLCHoklch(79.62% 0.158 106.2)
XYZxyz(44.1244, 51.3313, 10.0658)
Luminance0.5133 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC22D #2D35CA
analogous
#CA732D #CAC22D #83CA2D
triadic
#CAC22D #2DCAC2 #C22DCA
tetradic
#CAC22D #2DCA73 #2D35CA #CA2D83
square
#CAC22D #2DCA73 #2D35CA #CA2D83
split-complementary
#CAC22D #2D83CA #732DCA
monochromatic
#666217 #989222 #CAC22D #DAD45A #E5E18C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CAC22D#FFFFFF#000000##000000
##CAC22D1.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)
#D3BB00
Deuteranopia (green-blind)
#D6C039
Tritanopia (blue-blind)
#D9B5A6
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cac22d;
/* rgb */ color: rgb(202, 194, 45);
/* oklch */ color: oklch(79.6% 0.158 106.2);
Tailwind
colors: {
  custom: {
    50: '#ded473',
    500: '#cac22d',
    950: '#000000',
  },
}
SCSS
$custom: #cac22d;
$custom-light: #ded473;
$custom-dark: #000000;
JSON
{
  "hex": "#cac22d",
  "rgb": {
    "r": 202,
    "g": 194,
    "b": 45
  },
  "hsl": {
    "h": 56.943,
    "s": 63.563,
    "l": 48.431
  },
  "oklch": {
    "l": 0.79617,
    "c": 0.15794,
    "h": 106.2
  },
  "luminance": 0.5133
}

Semantic roles & 50–950 ramp

primary
#CAC22D
secondary
#2B2F70
accent
#4AE741
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CAC22D

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

Preview Lab → · Contrast checker → · Palette generator →

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