#CCC38D#CCC38D

#CCC38D is a light, moderate yellow. Relative luminance 0.538; OKLCH L 81.2% C 0.072 H 99.8°. Best body text is #000000 at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#CCC38D
RGBrgb(204, 195, 141)
HSLhsl(51, 38%, 68%)
HSVhsv(51, 31%, 80%)
CMYKcmyk(0%, 4.4%, 30.9%, 20%)
CIE-LABlab(78.34, -5.11, 28.33)
CIE-LCHlch(78.34, 28.79, 100.22°)
OKLaboklab(81.15% -0.0122 0.0709)
OKLCHoklch(81.15% 0.072 99.8)
XYZxyz(49.2251, 53.7918, 32.9839)
Luminance0.5379 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC38D #8D96CC
analogous
#CCA48D #CCC38D #B5CC8D
triadic
#CCC38D #8DCCC3 #C38DCC
tetradic
#CCC38D #8DCCA4 #8D96CC #CC8DB5
square
#CCC38D #8DCCA4 #8D96CC #CC8DB5
split-complementary
#CCC38D #8DB5CC #A48DCC
monochromatic
#9A8E45 #B9AD63 #CCC38D #DFD9B7 #F2F0E2

Accessibility & contrast

On white

1.79
#CCC38D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.76
#CCC38D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC38D
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC38D#FFFFFF#000000##000000
##CCC38D1.001.7911.7611.76
#FFFFFF1.791.0021.0021.00
#00000011.7621.001.001.00
##00000011.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDC089
Deuteranopia (green-blind)
#D0C38F
Tritanopia (blue-blind)
#D5BCB5
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #ccc38d;
/* rgb */ color: rgb(204, 195, 141);
/* oklch */ color: oklch(81.2% 0.072 99.8);
Tailwind
colors: {
  custom: {
    50: '#dcd5ae',
    500: '#ccc38d',
    950: '#000000',
  },
}
SCSS
$custom: #ccc38d;
$custom-light: #dcd5ae;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc38d",
  "rgb": {
    "r": 204,
    "g": 195,
    "b": 141
  },
  "hsl": {
    "h": 51.429,
    "s": 38.182,
    "l": 67.647
  },
  "oklch": {
    "l": 0.8115,
    "c": 0.07195,
    "h": 99.8
  },
  "luminance": 0.53791
}

Semantic roles & 50–950 ramp

primary
#CCC38D
secondary
#5D66A0
accent
#46B134
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CCC38D

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

Preview Lab → · Contrast checker → · Palette generator →

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