#CAC12D#CAC12D

#CAC12D is a light, vivid yellow. Relative luminance 0.509; OKLCH L 79.4% C 0.157 H 105.8°. Best body text is #000000 at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#CAC12D
RGBrgb(202, 193, 45)
HSLhsl(57, 64%, 48%)
HSVhsv(57, 78%, 79%)
CMYKcmyk(0%, 4.5%, 77.7%, 20.8%)
CIE-LABlab(76.61, -12.68, 69.46)
CIE-LCHlch(76.61, 70.61, 100.35°)
OKLaboklab(79.4% -0.0428 0.1511)
OKLCHoklch(79.4% 0.157 105.8)
XYZxyz(43.9026, 50.8876, 9.9918)
Luminance0.5089 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC12D #2D36CA
analogous
#CA732D #CAC12D #84CA2D
triadic
#CAC12D #2DCAC1 #C12DCA
tetradic
#CAC12D #2DCA73 #2D36CA #CA2D84
square
#CAC12D #2DCA73 #2D36CA #CA2D84
split-complementary
#CAC12D #2D84CA #732DCA
monochromatic
#666117 #989122 #CAC12D #DAD35A #E5E08C

Accessibility & contrast

On white

1.88
#CAC12D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.18
#CAC12D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC12D
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC12D#FFFFFF#000000##000000
##CAC12D1.001.8811.1811.18
#FFFFFF1.881.0021.0021.00
#00000011.1821.001.001.00
##00000011.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BA00
Deuteranopia (green-blind)
#D6C039
Tritanopia (blue-blind)
#D9B4A6
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #cac12d;
/* rgb */ color: rgb(202, 193, 45);
/* oklch */ color: oklch(79.4% 0.157 105.8);
Tailwind
colors: {
  custom: {
    50: '#ded373',
    500: '#cac12d',
    950: '#000000',
  },
}
SCSS
$custom: #cac12d;
$custom-light: #ded373;
$custom-dark: #000000;
JSON
{
  "hex": "#cac12d",
  "rgb": {
    "r": 202,
    "g": 193,
    "b": 45
  },
  "hsl": {
    "h": 56.561,
    "s": 63.563,
    "l": 48.431
  },
  "oklch": {
    "l": 0.79403,
    "c": 0.15706,
    "h": 105.8
  },
  "luminance": 0.50886
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CAC12D

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

Preview Lab → · Contrast checker → · Palette generator →

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