#CCC28A#CCC28A

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

Color values

HEX#CCC28A
RGBrgb(204, 194, 138)
HSLhsl(51, 39%, 67%)
HSVhsv(51, 32%, 80%)
CMYKcmyk(0%, 4.9%, 32.4%, 20%)
CIE-LABlab(78.03, -4.97, 29.49)
CIE-LCHlch(78.03, 29.91, 99.56°)
OKLaboklab(80.88% -0.012 0.0736)
OKLCHoklch(80.88% 0.075 99.2)
XYZxyz(48.7816, 53.2571, 31.7498)
Luminance0.5326 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC28A #8A94CC
analogous
#CCA18A #CCC28A #B5CC8A
triadic
#CCC28A #8ACCC2 #C28ACC
tetradic
#CCC28A #8ACCA1 #8A94CC #CC8AB5
square
#CCC28A #8ACCA1 #8A94CC #CC8AB5
split-complementary
#CCC28A #8AB5CC #A18ACC
monochromatic
#998C43 #B9AC5F #CCC28A #DFD8B5 #F1EEDF

Accessibility & contrast

On white

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

On black

11.65
#CCC28A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC28A
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC28A#FFFFFF#000000##000000
##CCC28A1.001.8011.6511.65
#FFFFFF1.801.0021.0021.00
#00000011.6521.001.001.00
##00000011.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDBF86
Deuteranopia (green-blind)
#D0C38C
Tritanopia (blue-blind)
#D6BAB3
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #ccc28a;
/* rgb */ color: rgb(204, 194, 138);
/* oklch */ color: oklch(80.9% 0.075 99.2);
Tailwind
colors: {
  custom: {
    50: '#dcd4ac',
    500: '#ccc28a',
    950: '#000000',
  },
}
SCSS
$custom: #ccc28a;
$custom-light: #dcd4ac;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc28a",
  "rgb": {
    "r": 204,
    "g": 194,
    "b": 138
  },
  "hsl": {
    "h": 50.909,
    "s": 39.286,
    "l": 67.059
  },
  "oklch": {
    "l": 0.80885,
    "c": 0.07453,
    "h": 99.2
  },
  "luminance": 0.53256
}

Semantic roles & 50–950 ramp

primary
#CCC28A
secondary
#5B65A0
accent
#46B233
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CCC28A

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

Preview Lab → · Contrast checker → · Palette generator →

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