#CCC281#CCC281

#CCC281 is a light, moderate yellow. Relative luminance 0.530; OKLCH L 80.7% C 0.085 H 100.6°. Best body text is #000000 at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#CCC281
RGBrgb(204, 194, 129)
HSLhsl(52, 42%, 65%)
HSVhsv(52, 37%, 80%)
CMYKcmyk(0%, 4.9%, 36.8%, 20%)
CIE-LABlab(77.88, -6.05, 33.99)
CIE-LCHlch(77.88, 34.52, 100.09°)
OKLaboklab(80.72% -0.0156 0.0838)
OKLCHoklch(80.72% 0.085 100.6)
XYZxyz(48.1568, 53.0072, 28.4593)
Luminance0.5301 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC281 #818BCC
analogous
#CC9C81 #CCC281 #B0CC81
triadic
#CCC281 #81CCC2 #C281CC
tetradic
#CCC281 #81CC9C #818BCC #CC81B0
square
#CCC281 #81CC9C #818BCC #CC81B0
split-complementary
#CCC281 #81B0CC #9C81CC
monochromatic
#968A3D #BAAD55 #CCC281 #DED7AD #EFECD8

Accessibility & contrast

On white

1.81
#CCC281 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.60
#CCC281 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC281
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC281#FFFFFF#000000##000000
##CCC2811.001.8111.6011.60
#FFFFFF1.811.0021.0021.00
#00000011.6021.001.001.00
##00000011.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#CEBE7C
Deuteranopia (green-blind)
#D1C283
Tritanopia (blue-blind)
#D7B9B2
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #ccc281;
/* rgb */ color: rgb(204, 194, 129);
/* oklch */ color: oklch(80.7% 0.085 100.6);
Tailwind
colors: {
  custom: {
    50: '#dcd4a6',
    500: '#ccc281',
    950: '#000000',
  },
}
SCSS
$custom: #ccc281;
$custom-light: #dcd4a6;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc281",
  "rgb": {
    "r": 204,
    "g": 194,
    "b": 129
  },
  "hsl": {
    "h": 52,
    "s": 42.373,
    "l": 65.294
  },
  "oklch": {
    "l": 0.8072,
    "c": 0.08521,
    "h": 100.6
  },
  "luminance": 0.53006
}

Semantic roles & 50–950 ramp

primary
#CCC281
secondary
#555E9C
accent
#42B530
background
#FEFEFC
surface
#FCFBF6
border
#D5D4D0
text
#15140F
muted
#848380

Preview Lab

Preview with #CCC281

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

Preview Lab → · Contrast checker → · Palette generator →

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