#CCC28B#CCC28B

#CCC28B is a light, moderate yellow. Relative luminance 0.533; OKLCH L 80.9% C 0.073 H 99.1°. Best body text is #000000 at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#CCC28B
RGBrgb(204, 194, 139)
HSLhsl(51, 39%, 67%)
HSVhsv(51, 32%, 80%)
CMYKcmyk(0%, 4.9%, 31.9%, 20%)
CIE-LABlab(78.04, -4.84, 28.99)
CIE-LCHlch(78.04, 29.39, 99.48°)
OKLaboklab(80.9% -0.0116 0.0724)
OKLCHoklch(80.9% 0.073 99.1)
XYZxyz(48.8543, 53.2862, 32.1328)
Luminance0.5329 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC28B #8B95CC
analogous
#CCA28B #CCC28B #B6CC8B
triadic
#CCC28B #8BCCC2 #C28BCC
tetradic
#CCC28B #8BCCA2 #8B95CC #CC8BB6
square
#CCC28B #8BCCA2 #8B95CC #CC8BB6
split-complementary
#CCC28B #8BB6CC #A28BCC
monochromatic
#998C43 #B9AC60 #CCC28B #DFD8B6 #F1EFE0

Accessibility & contrast

On white

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

On black

11.66
#CCC28B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC28B
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC28B#FFFFFF#000000##000000
##CCC28B1.001.8011.6611.66
#FFFFFF1.801.0021.0021.00
#00000011.6621.001.001.00
##00000011.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCBF87
Deuteranopia (green-blind)
#CFC38D
Tritanopia (blue-blind)
#D6BAB4
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #ccc28b;
/* rgb */ color: rgb(204, 194, 139);
/* oklch */ color: oklch(80.9% 0.073 99.1);
Tailwind
colors: {
  custom: {
    50: '#dcd4ad',
    500: '#ccc28b',
    950: '#000000',
  },
}
SCSS
$custom: #ccc28b;
$custom-light: #dcd4ad;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc28b",
  "rgb": {
    "r": 204,
    "g": 194,
    "b": 139
  },
  "hsl": {
    "h": 50.769,
    "s": 38.922,
    "l": 67.255
  },
  "oklch": {
    "l": 0.80904,
    "c": 0.07332,
    "h": 99.1
  },
  "luminance": 0.53285
}

Semantic roles & 50–950 ramp

primary
#CCC28B
secondary
#5B66A0
accent
#47B234
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CCC28B

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

Preview Lab → · Contrast checker → · Palette generator →

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