#CACC51#CACC51

#CACC51 is a very light, vivid yellow. Relative luminance 0.563; OKLCH L 82.0% C 0.144 H 110.1°. Best body text is #000000 at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#CACC51
RGBrgb(202, 204, 81)
HSLhsl(61, 55%, 56%)
HSVhsv(61, 60%, 80%)
CMYKcmyk(1%, 0%, 60.3%, 20%)
CIE-LABlab(79.81, -16.35, 59.30)
CIE-LCHlch(79.81, 61.51, 105.41°)
OKLaboklab(82.03% -0.0496 0.1356)
OKLCHoklch(82.03% 0.144 110.1)
XYZxyz(47.4366, 56.3376, 16.1584)
Luminance0.5634 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CACC51 #5351CC
analogous
#CC9051 #CACC51 #8CCC51
triadic
#CACC51 #51CACC #CC51CA
tetradic
#CACC51 #51CC90 #5351CC #CC518C
square
#CACC51 #51CC90 #5351CC #CC518C
split-complementary
#CACC51 #518CCC #9051CC
monochromatic
#7C7E25 #ABAD33 #CACC51 #D8DA80 #E7E8B0

Accessibility & contrast

On white

1.71
#CACC51 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.27
#CACC51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CACC51
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CACC51#FFFFFF#000000##000000
##CACC511.001.7112.2712.27
#FFFFFF1.711.0021.0021.00
#00000012.2721.001.001.00
##00000012.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC442
Deuteranopia (green-blind)
#DCC858
Tritanopia (blue-blind)
#D7C0B2
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cacc51;
/* rgb */ color: rgb(202, 204, 81);
/* oklch */ color: oklch(82.0% 0.144 110.1);
Tailwind
colors: {
  custom: {
    50: '#dddb87',
    500: '#cacc51',
    950: '#000000',
  },
}
SCSS
$custom: #cacc51;
$custom-light: #dddb87;
$custom-dark: #000000;
JSON
{
  "hex": "#cacc51",
  "rgb": {
    "r": 202,
    "g": 204,
    "b": 81
  },
  "hsl": {
    "h": 60.976,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.82027,
    "c": 0.14436,
    "h": 110.1
  },
  "luminance": 0.56336
}

Semantic roles & 50–950 ramp

primary
#CACC51
secondary
#3D3C86
accent
#4ADE4C
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#15140C
muted
#84837F

Preview Lab

Preview with #CACC51

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

Preview Lab → · Contrast checker → · Palette generator →

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