#CAC12F#CAC12F

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

Color values

HEX#CAC12F
RGBrgb(202, 193, 47)
HSLhsl(57, 62%, 49%)
HSVhsv(57, 77%, 79%)
CMYKcmyk(0%, 4.5%, 76.7%, 20.8%)
CIE-LABlab(76.62, -12.61, 68.86)
CIE-LCHlch(76.62, 70.00, 100.37°)
OKLaboklab(79.41% -0.0424 0.1502)
OKLCHoklch(79.41% 0.156 105.8)
XYZxyz(43.9421, 50.9034, 10.1995)
Luminance0.5090 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC12F #2F38CA
analogous
#CA742F #CAC12F #86CA2F
triadic
#CAC12F #2FCAC1 #C12FCA
tetradic
#CAC12F #2FCA74 #2F38CA #CA2F86
square
#CAC12F #2FCA74 #2F38CA #CA2F86
split-complementary
#CAC12F #2F86CA #742FCA
monochromatic
#676218 #989223 #CAC12F #D9D25D #E5E08F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CAC12F#FFFFFF#000000##000000
##CAC12F1.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)
#D2BA06
Deuteranopia (green-blind)
#D6C03B
Tritanopia (blue-blind)
#D9B4A6
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #cac12f;
/* rgb */ color: rgb(202, 193, 47);
/* oklch */ color: oklch(79.4% 0.156 105.8);
Tailwind
colors: {
  custom: {
    50: '#ded374',
    500: '#cac12f',
    950: '#000000',
  },
}
SCSS
$custom: #cac12f;
$custom-light: #ded374;
$custom-dark: #000000;
JSON
{
  "hex": "#cac12f",
  "rgb": {
    "r": 202,
    "g": 193,
    "b": 47
  },
  "hsl": {
    "h": 56.516,
    "s": 62.249,
    "l": 48.824
  },
  "oklch": {
    "l": 0.79414,
    "c": 0.15607,
    "h": 105.8
  },
  "luminance": 0.50902
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CAC12F

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

Preview Lab → · Contrast checker → · Palette generator →

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