#CCCA5F#CCCA5F

#CCCA5F is a light, vivid yellow. Relative luminance 0.559; OKLCH L 81.9% C 0.130 H 108.0°. Best body text is #000000 at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#CCCA5F
RGBrgb(204, 202, 95)
HSLhsl(59, 52%, 59%)
HSVhsv(59, 53%, 80%)
CMYKcmyk(0%, 1%, 53.4%, 20%)
CIE-LABlab(79.56, -13.48, 52.84)
CIE-LCHlch(79.56, 54.53, 104.31°)
OKLaboklab(81.91% -0.04 0.1235)
OKLCHoklch(81.91% 0.13 108)
XYZxyz(48.0892, 55.9059, 19.0820)
Luminance0.5591 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCCA5F #5F61CC
analogous
#CC935F #CCCA5F #97CC5F
triadic
#CCCA5F #5FCCCA #CA5FCC
tetradic
#CCCA5F #5FCC93 #5F61CC #CC5F97
square
#CCCA5F #5FCC93 #5F61CC #CC5F97
split-complementary
#CCCA5F #5F97CC #935FCC
monochromatic
#86842B #B4B239 #CCCA5F #DBD98D #EAE9BC

Accessibility & contrast

On white

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

On black

12.18
#CCCA5F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCCA5F
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCCA5F#FFFFFF#000000##000000
##CCCA5F1.001.7212.1812.18
#FFFFFF1.721.0021.0021.00
#00000012.1821.001.001.00
##00000012.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C354
Deuteranopia (green-blind)
#DAC765
Tritanopia (blue-blind)
#D9BFB2
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #ccca5f;
/* rgb */ color: rgb(204, 202, 95);
/* oklch */ color: oklch(81.9% 0.130 108.0);
Tailwind
colors: {
  custom: {
    50: '#ded990',
    500: '#ccca5f',
    950: '#000000',
  },
}
SCSS
$custom: #ccca5f;
$custom-light: #ded990;
$custom-dark: #000000;
JSON
{
  "hex": "#ccca5f",
  "rgb": {
    "r": 204,
    "g": 202,
    "b": 95
  },
  "hsl": {
    "h": 58.899,
    "s": 51.659,
    "l": 58.627
  },
  "oklch": {
    "l": 0.81912,
    "c": 0.12978,
    "h": 108
  },
  "luminance": 0.55905
}

Semantic roles & 50–950 ramp

primary
#CCCA5F
secondary
#42448D
accent
#4FDB4D
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CCCA5F

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

Preview Lab → · Contrast checker → · Palette generator →

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