#CCC07F#CCC07F

#CCC07F is a light, moderate yellow. Relative luminance 0.521; OKLCH L 80.3% C 0.085 H 99.0°. Best body text is #000000 at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#CCC07F
RGBrgb(204, 192, 127)
HSLhsl(51, 43%, 65%)
HSVhsv(51, 38%, 80%)
CMYKcmyk(0%, 5.9%, 37.7%, 20%)
CIE-LABlab(77.32, -5.24, 34.30)
CIE-LCHlch(77.32, 34.70, 98.68°)
OKLaboklab(80.27% -0.0134 0.0844)
OKLCHoklch(80.27% 0.085 99)
XYZxyz(47.5831, 52.0703, 27.6186)
Luminance0.5207 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC07F #7F8BCC
analogous
#CC997F #CCC07F #B2CC7F
triadic
#CCC07F #7FCCC0 #C07FCC
tetradic
#CCC07F #7FCC99 #7F8BCC #CC7FB2
square
#CCC07F #7FCC99 #7F8BCC #CC7FB2
split-complementary
#CCC07F #7FB2CC #997FCC
monochromatic
#95873B #BBAA53 #CCC07F #DDD6AB #EFEBD7

Accessibility & contrast

On white

1.84
#CCC07F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.41
#CCC07F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC07F
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC07F#FFFFFF#000000##000000
##CCC07F1.001.8411.4111.41
#FFFFFF1.841.0021.0021.00
#00000011.4121.001.001.00
##00000011.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCBC7A
Deuteranopia (green-blind)
#CFC181
Tritanopia (blue-blind)
#D7B7B0
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #ccc07f;
/* rgb */ color: rgb(204, 192, 127);
/* oklch */ color: oklch(80.3% 0.085 99.0);
Tailwind
colors: {
  custom: {
    50: '#dcd2a5',
    500: '#ccc07f',
    950: '#000000',
  },
}
SCSS
$custom: #ccc07f;
$custom-light: #dcd2a5;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc07f",
  "rgb": {
    "r": 204,
    "g": 192,
    "b": 127
  },
  "hsl": {
    "h": 50.649,
    "s": 43.017,
    "l": 64.902
  },
  "oklch": {
    "l": 0.8027,
    "c": 0.08548,
    "h": 99
  },
  "luminance": 0.52069
}

Semantic roles & 50–950 ramp

primary
#CCC07F
secondary
#545F9C
accent
#44B62F
background
#FEFEFC
surface
#FCFBF6
border
#D5D4D0
text
#15140F
muted
#848380

Preview Lab

Preview with #CCC07F

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

Preview Lab → · Contrast checker → · Palette generator →

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