#CACC3F#CACC3F

#CACC3F is a light, vivid yellow. Relative luminance 0.561; OKLCH L 81.9% C 0.157 H 110.2°. Best body text is #000000 at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#CACC3F
RGBrgb(202, 204, 63)
HSLhsl(61, 58%, 52%)
HSVhsv(61, 69%, 80%)
CMYKcmyk(1%, 0%, 69.1%, 20%)
CIE-LABlab(79.67, -17.42, 66.31)
CIE-LCHlch(79.67, 68.56, 104.72°)
OKLaboklab(81.88% -0.0544 0.1477)
OKLCHoklch(81.88% 0.157 110.2)
XYZxyz(46.8488, 56.1025, 13.0627)
Luminance0.5610 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CACC3F #413FCC
analogous
#CC883F #CACC3F #84CC3F
triadic
#CACC3F #3FCACC #CC3FCA
tetradic
#CACC3F #3FCC88 #413FCC #CC3F84
square
#CACC3F #3FCC88 #413FCC #CC3F84
split-complementary
#CACC3F #3F84CC #883FCC
monochromatic
#71721E #A1A32B #CACC3F #D7D96F #E5E6A0

Accessibility & contrast

On white

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

On black

12.22
#CACC3F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CACC3F
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CACC3F#FFFFFF#000000##000000
##CACC3F1.001.7212.2212.22
#FFFFFF1.721.0021.0021.00
#00000012.2221.001.001.00
##00000012.2221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cacc3f;
/* rgb */ color: rgb(202, 204, 63);
/* oklch */ color: oklch(81.9% 0.157 110.2);
Tailwind
colors: {
  custom: {
    50: '#dedb7d',
    500: '#cacc3f',
    950: '#000000',
  },
}
SCSS
$custom: #cacc3f;
$custom-light: #dedb7d;
$custom-dark: #000000;
JSON
{
  "hex": "#cacc3f",
  "rgb": {
    "r": 202,
    "g": 204,
    "b": 63
  },
  "hsl": {
    "h": 60.851,
    "s": 58.025,
    "l": 52.353
  },
  "oklch": {
    "l": 0.81877,
    "c": 0.15735,
    "h": 110.2
  },
  "luminance": 0.56101
}

Semantic roles & 50–950 ramp

primary
#CACC3F
secondary
#35347B
accent
#47E149
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CACC3F

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

Preview Lab → · Contrast checker → · Palette generator →

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