#CCCA7F#CCCA7F

#CCCA7F is a very light, moderate yellow. Relative luminance 0.566; OKLCH L 82.4% C 0.096 H 107.0°. Best body text is #000000 at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#CCCA7F
RGBrgb(204, 202, 127)
HSLhsl(58, 43%, 65%)
HSVhsv(58, 38%, 80%)
CMYKcmyk(0%, 1%, 37.7%, 20%)
CIE-LABlab(79.96, -10.39, 37.70)
CIE-LCHlch(79.96, 39.11, 105.41°)
OKLaboklab(82.36% -0.0282 0.0922)
OKLCHoklch(82.36% 0.096 107)
XYZxyz(49.8538, 56.6118, 28.3755)
Luminance0.5661 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCCA7F #7F81CC
analogous
#CCA47F #CCCA7F #A7CC7F
triadic
#CCCA7F #7FCCCA #CA7FCC
tetradic
#CCCA7F #7FCCA4 #7F81CC #CC7FA7
square
#CCCA7F #7FCCA4 #7F81CC #CC7FA7
split-complementary
#CCCA7F #7FA7CC #A47FCC
monochromatic
#95933B #BBB853 #CCCA7F #DDDCAB #EFEED7

Accessibility & contrast

On white

1.70
#CCCA7F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.32
#CCCA7F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCCA7F
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCCA7F#FFFFFF#000000##000000
##CCCA7F1.001.7012.3212.32
#FFFFFF1.701.0021.0021.00
#00000012.3221.001.001.00
##00000012.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6C479
Deuteranopia (green-blind)
#D7C882
Tritanopia (blue-blind)
#D6C1B7
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #ccca7f;
/* rgb */ color: rgb(204, 202, 127);
/* oklch */ color: oklch(82.4% 0.096 107.0);
Tailwind
colors: {
  custom: {
    50: '#dddaa5',
    500: '#ccca7f',
    950: '#000000',
  },
}
SCSS
$custom: #ccca7f;
$custom-light: #dddaa5;
$custom-dark: #000000;
JSON
{
  "hex": "#ccca7f",
  "rgb": {
    "r": 204,
    "g": 202,
    "b": 127
  },
  "hsl": {
    "h": 58.442,
    "s": 43.017,
    "l": 64.902
  },
  "oklch": {
    "l": 0.82361,
    "c": 0.09647,
    "h": 107
  },
  "luminance": 0.56611
}

Semantic roles & 50–950 ramp

primary
#CCCA7F
secondary
#54559C
accent
#33B62F
background
#FEFEFC
surface
#FCFBF6
border
#D5D4D0
text
#15140F
muted
#848380

Preview Lab

Preview with #CCCA7F

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

Preview Lab → · Contrast checker → · Palette generator →

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