#CACC38#CACC38

#CACC38 is a light, vivid yellow. Relative luminance 0.560; OKLCH L 81.8% C 0.162 H 110.3°. Best body text is #000000 at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#CACC38
RGBrgb(202, 204, 56)
HSLhsl(61, 59%, 51%)
HSVhsv(61, 73%, 80%)
CMYKcmyk(1%, 0%, 72.5%, 20%)
CIE-LABlab(79.63, -17.75, 68.73)
CIE-LCHlch(79.63, 70.99, 104.48°)
OKLaboklab(81.83% -0.056 0.1516)
OKLCHoklch(81.83% 0.162 110.3)
XYZxyz(46.6654, 56.0291, 12.0971)
Luminance0.5603 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CACC38 #3A38CC
analogous
#CC8438 #CACC38 #80CC38
triadic
#CACC38 #38CACC #CC38CA
tetradic
#CACC38 #38CC84 #3A38CC #CC3880
square
#CACC38 #38CC84 #3A38CC #CC3880
split-complementary
#CACC38 #3880CC #8438CC
monochromatic
#6C6E1C #9D9E29 #CACC38 #D7D869 #E4E599

Accessibility & contrast

On white

1.72
#CACC38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.21
#CACC38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CACC38
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CACC38#FFFFFF#000000##000000
##CACC381.001.7212.2112.21
#FFFFFF1.721.0021.0021.00
#00000012.2121.001.001.00
##00000012.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC31A
Deuteranopia (green-blind)
#DEC744
Tritanopia (blue-blind)
#D8BFB0
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cacc38;
/* rgb */ color: rgb(202, 204, 56);
/* oklch */ color: oklch(81.8% 0.162 110.3);
Tailwind
colors: {
  custom: {
    50: '#dedb79',
    500: '#cacc38',
    950: '#000000',
  },
}
SCSS
$custom: #cacc38;
$custom-light: #dedb79;
$custom-dark: #000000;
JSON
{
  "hex": "#cacc38",
  "rgb": {
    "r": 202,
    "g": 204,
    "b": 56
  },
  "hsl": {
    "h": 60.811,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.81831,
    "c": 0.16157,
    "h": 110.3
  },
  "luminance": 0.56028
}

Semantic roles & 50–950 ramp

primary
#CACC38
secondary
#323177
accent
#45E248
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CACC38

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

Preview Lab → · Contrast checker → · Palette generator →

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