#CAC040#CAC040

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

Color values

HEX#CAC040
RGBrgb(202, 192, 64)
HSLhsl(56, 57%, 52%)
HSVhsv(56, 68%, 79%)
CMYKcmyk(0%, 5%, 68.3%, 20.8%)
CIE-LABlab(76.45, -11.32, 62.73)
CIE-LCHlch(76.45, 63.74, 100.23°)
OKLaboklab(79.31% -0.0372 0.1403)
OKLCHoklch(79.31% 0.145 104.8)
XYZxyz(44.1339, 50.6277, 12.2968)
Luminance0.5063 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC040 #404ACA
analogous
#CA7B40 #CAC040 #8FCA40
triadic
#CAC040 #40CAC0 #C040CA
tetradic
#CAC040 #40CA7B #404ACA #CA408F
square
#CAC040 #40CA7B #404ACA #CA408F
split-complementary
#CAC040 #408FCA #7B40CA
monochromatic
#706B1F #A0982C #CAC040 #D7D070 #E5E0A0

Accessibility & contrast

On white

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

On black

11.13
#CAC040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC040
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC040#FFFFFF#000000##000000
##CAC0401.001.8911.1311.13
#FFFFFF1.891.0021.0021.00
#00000011.1321.001.001.00
##00000011.1321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cac040;
/* rgb */ color: rgb(202, 192, 64);
/* oklch */ color: oklch(79.3% 0.145 104.8);
Tailwind
colors: {
  custom: {
    50: '#ded27c',
    500: '#cac040',
    950: '#000000',
  },
}
SCSS
$custom: #cac040;
$custom-light: #ded27c;
$custom-dark: #000000;
JSON
{
  "hex": "#cac040",
  "rgb": {
    "r": 202,
    "g": 192,
    "b": 64
  },
  "hsl": {
    "h": 55.652,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.79312,
    "c": 0.1451,
    "h": 104.8
  },
  "luminance": 0.50626
}

Semantic roles & 50–950 ramp

primary
#CAC040
secondary
#353A7A
accent
#53E048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CAC040

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

Preview Lab → · Contrast checker → · Palette generator →

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