#CACC2D#CACC2D

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

Color values

HEX#CACC2D
RGBrgb(202, 204, 45)
HSLhsl(61, 64%, 49%)
HSVhsv(61, 78%, 80%)
CMYKcmyk(1%, 0%, 77.9%, 20%)
CIE-LABlab(79.58, -18.19, 72.11)
CIE-LCHlch(79.58, 74.37, 104.16°)
OKLaboklab(81.77% -0.0581 0.1568)
OKLCHoklch(81.77% 0.167 110.3)
XYZxyz(46.4254, 55.9331, 10.8327)
Luminance0.5593 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CACC2D #2F2DCC
analogous
#CC7F2D #CACC2D #7BCC2D
triadic
#CACC2D #2DCACC #CC2DCA
tetradic
#CACC2D #2DCC7F #2F2DCC #CC2D7B
square
#CACC2D #2DCC7F #2F2DCC #CC2D7B
split-complementary
#CACC2D #2D7BCC #7F2DCC
monochromatic
#676817 #989A22 #CACC2D #D9DB5B #E5E68D

Accessibility & contrast

On white

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

On black

12.19
#CACC2D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CACC2D
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CACC2D#FFFFFF#000000##000000
##CACC2D1.001.7212.1912.19
#FFFFFF1.721.0021.0021.00
#00000012.1921.001.001.00
##00000012.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC300
Deuteranopia (green-blind)
#DEC73B
Tritanopia (blue-blind)
#D9BFAF
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cacc2d;
/* rgb */ color: rgb(202, 204, 45);
/* oklch */ color: oklch(81.8% 0.167 110.3);
Tailwind
colors: {
  custom: {
    50: '#dedb74',
    500: '#cacc2d',
    950: '#000000',
  },
}
SCSS
$custom: #cacc2d;
$custom-light: #dedb74;
$custom-dark: #000000;
JSON
{
  "hex": "#cacc2d",
  "rgb": {
    "r": 202,
    "g": 204,
    "b": 45
  },
  "hsl": {
    "h": 60.755,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.8177,
    "c": 0.16722,
    "h": 110.3
  },
  "luminance": 0.55932
}

Semantic roles & 50–950 ramp

primary
#CACC2D
secondary
#2C2B72
accent
#41E743
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CACC2D

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

Preview Lab → · Contrast checker → · Palette generator →

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