#CAC22F#CAC22F

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

Color values

HEX#CAC22F
RGBrgb(202, 194, 47)
HSLhsl(57, 62%, 49%)
HSVhsv(57, 77%, 79%)
CMYKcmyk(0%, 4%, 76.7%, 20.8%)
CIE-LABlab(76.89, -13.11, 69.10)
CIE-LCHlch(76.89, 70.34, 100.74°)
OKLaboklab(79.63% -0.0438 0.1507)
OKLCHoklch(79.63% 0.157 106.2)
XYZxyz(44.1639, 51.3470, 10.2734)
Luminance0.5134 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC22F #2F37CA
analogous
#CA752F #CAC22F #85CA2F
triadic
#CAC22F #2FCAC2 #C22FCA
tetradic
#CAC22F #2FCA75 #2F37CA #CA2F85
square
#CAC22F #2FCA75 #2F37CA #CA2F85
split-complementary
#CAC22F #2F85CA #752FCA
monochromatic
#676318 #989223 #CAC22F #D9D35D #E5E08F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CAC22F#FFFFFF#000000##000000
##CAC22F1.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)
#D3BB05
Deuteranopia (green-blind)
#D6C03B
Tritanopia (blue-blind)
#D9B5A7
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cac22f;
/* rgb */ color: rgb(202, 194, 47);
/* oklch */ color: oklch(79.6% 0.157 106.2);
Tailwind
colors: {
  custom: {
    50: '#ded474',
    500: '#cac22f',
    950: '#000000',
  },
}
SCSS
$custom: #cac22f;
$custom-light: #ded474;
$custom-dark: #000000;
JSON
{
  "hex": "#cac22f",
  "rgb": {
    "r": 202,
    "g": 194,
    "b": 47
  },
  "hsl": {
    "h": 56.903,
    "s": 62.249,
    "l": 48.824
  },
  "oklch": {
    "l": 0.79627,
    "c": 0.15696,
    "h": 106.2
  },
  "luminance": 0.51345
}

Semantic roles & 50–950 ramp

primary
#CAC22F
secondary
#2C3071
accent
#4BE542
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CAC22F

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

Preview Lab → · Contrast checker → · Palette generator →

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