#CACC48#CACC48

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

Color values

HEX#CACC48
RGBrgb(202, 204, 72)
HSLhsl(61, 56%, 54%)
HSVhsv(61, 65%, 80%)
CMYKcmyk(1%, 0%, 64.7%, 20%)
CIE-LABlab(79.73, -16.92, 62.93)
CIE-LCHlch(79.73, 65.17, 105.05°)
OKLaboklab(81.95% -0.0521 0.142)
OKLCHoklch(81.95% 0.151 110.2)
XYZxyz(47.1212, 56.2114, 14.4973)
Luminance0.5621 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CACC48 #4A48CC
analogous
#CC8C48 #CACC48 #88CC48
triadic
#CACC48 #48CACC #CC48CA
tetradic
#CACC48 #48CC8C #4A48CC #CC4888
square
#CACC48 #48CC8C #4A48CC #CC4888
split-complementary
#CACC48 #4888CC #8C48CC
monochromatic
#777821 #A6A82F #CACC48 #D8D978 #E6E7A8

Accessibility & contrast

On white

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

On black

12.24
#CACC48 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CACC48
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CACC48#FFFFFF#000000##000000
##CACC481.001.7212.2412.24
#FFFFFF1.721.0021.0021.00
#00000012.2421.001.001.00
##00000012.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC336
Deuteranopia (green-blind)
#DDC851
Tritanopia (blue-blind)
#D8C0B1
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cacc48;
/* rgb */ color: rgb(202, 204, 72);
/* oklch */ color: oklch(81.9% 0.151 110.2);
Tailwind
colors: {
  custom: {
    50: '#dddb82',
    500: '#cacc48',
    950: '#000000',
  },
}
SCSS
$custom: #cacc48;
$custom-light: #dddb82;
$custom-dark: #000000;
JSON
{
  "hex": "#cacc48",
  "rgb": {
    "r": 202,
    "g": 204,
    "b": 72
  },
  "hsl": {
    "h": 60.909,
    "s": 56.41,
    "l": 54.118
  },
  "oklch": {
    "l": 0.81946,
    "c": 0.15124,
    "h": 110.2
  },
  "luminance": 0.5621
}

Semantic roles & 50–950 ramp

primary
#CACC48
secondary
#393880
accent
#48E04A
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140B
muted
#84837E

Preview Lab

Preview with #CACC48

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

Preview Lab → · Contrast checker → · Palette generator →

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