#CCC381#CCC381

#CCC381 is a light, moderate yellow. Relative luminance 0.535; OKLCH L 80.9% C 0.086 H 101.4°. Best body text is #000000 at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#CCC381
RGBrgb(204, 195, 129)
HSLhsl(53, 42%, 65%)
HSVhsv(53, 37%, 80%)
CMYKcmyk(0%, 4.4%, 36.8%, 20%)
CIE-LABlab(78.14, -6.56, 34.33)
CIE-LCHlch(78.14, 34.95, 100.83°)
OKLaboklab(80.93% -0.0171 0.0846)
OKLCHoklch(80.93% 0.086 101.4)
XYZxyz(48.3801, 53.4538, 28.5337)
Luminance0.5345 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC381 #818ACC
analogous
#CC9D81 #CCC381 #AFCC81
triadic
#CCC381 #81CCC3 #C381CC
tetradic
#CCC381 #81CC9D #818ACC #CC81AF
square
#CCC381 #81CC9D #818ACC #CC81AF
split-complementary
#CCC381 #81AFCC #9D81CC
monochromatic
#968B3D #BAAE55 #CCC381 #DED8AD #EFECD8

Accessibility & contrast

On white

1.80
#CCC381 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.69
#CCC381 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC381
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC381#FFFFFF#000000##000000
##CCC3811.001.8011.6911.69
#FFFFFF1.801.0021.0021.00
#00000011.6921.001.001.00
##00000011.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFBF7C
Deuteranopia (green-blind)
#D2C384
Tritanopia (blue-blind)
#D7BAB2
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #ccc381;
/* rgb */ color: rgb(204, 195, 129);
/* oklch */ color: oklch(80.9% 0.086 101.4);
Tailwind
colors: {
  custom: {
    50: '#dcd5a6',
    500: '#ccc381',
    950: '#000000',
  },
}
SCSS
$custom: #ccc381;
$custom-light: #dcd5a6;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc381",
  "rgb": {
    "r": 204,
    "g": 195,
    "b": 129
  },
  "hsl": {
    "h": 52.8,
    "s": 42.373,
    "l": 65.294
  },
  "oklch": {
    "l": 0.80929,
    "c": 0.08628,
    "h": 101.4
  },
  "luminance": 0.53453
}

Semantic roles & 50–950 ramp

primary
#CCC381
secondary
#555D9C
accent
#40B530
background
#FEFEFC
surface
#FCFBF6
border
#D5D4D0
text
#15140F
muted
#848380

Preview Lab

Preview with #CCC381

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

Preview Lab → · Contrast checker → · Palette generator →

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