#CAC03F#CAC03F

#CAC03F is a light, vivid yellow. Relative luminance 0.506; OKLCH L 79.3% C 0.146 H 104.9°. Best body text is #000000 at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#CAC03F
RGBrgb(202, 192, 63)
HSLhsl(56, 57%, 52%)
HSVhsv(56, 69%, 79%)
CMYKcmyk(0%, 5%, 68.8%, 20.8%)
CIE-LABlab(76.45, -11.38, 63.11)
CIE-LCHlch(76.45, 64.12, 100.22°)
OKLaboklab(79.3% -0.0374 0.1409)
OKLCHoklch(79.3% 0.146 104.9)
XYZxyz(44.1057, 50.6164, 12.1483)
Luminance0.5061 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC03F #3F49CA
analogous
#CA7A3F #CAC03F #8FCA3F
triadic
#CAC03F #3FCAC0 #C03FCA
tetradic
#CAC03F #3FCA7A #3F49CA #CA3F8F
square
#CAC03F #3FCA7A #3F49CA #CA3F8F
split-complementary
#CAC03F #3F8FCA #7A3FCA
monochromatic
#706A1F #A0972C #CAC03F #D7D06F #E4DF9F

Accessibility & contrast

On white

1.89
#CAC03F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.12
#CAC03F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC03F
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC03F#FFFFFF#000000##000000
##CAC03F1.001.8911.1211.12
#FFFFFF1.891.0021.0021.00
#00000011.1221.001.001.00
##00000011.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1B92B
Deuteranopia (green-blind)
#D4BF47
Tritanopia (blue-blind)
#D9B3A6
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #cac03f;
/* rgb */ color: rgb(202, 192, 63);
/* oklch */ color: oklch(79.3% 0.146 104.9);
Tailwind
colors: {
  custom: {
    50: '#ded27c',
    500: '#cac03f',
    950: '#000000',
  },
}
SCSS
$custom: #cac03f;
$custom-light: #ded27c;
$custom-dark: #000000;
JSON
{
  "hex": "#cac03f",
  "rgb": {
    "r": 202,
    "g": 192,
    "b": 63
  },
  "hsl": {
    "h": 55.683,
    "s": 56.735,
    "l": 51.961
  },
  "oklch": {
    "l": 0.79304,
    "c": 0.14577,
    "h": 104.9
  },
  "luminance": 0.50615
}

Semantic roles & 50–950 ramp

primary
#CAC03F
secondary
#343979
accent
#53E048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CAC03F

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

Preview Lab → · Contrast checker → · Palette generator →

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