#CCC28F#CCC28F

#CCC28F is a light, moderate yellow. Relative luminance 0.534; OKLCH L 81.0% C 0.068 H 98.3°. Best body text is #000000 at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#CCC28F
RGBrgb(204, 194, 143)
HSLhsl(50, 37%, 68%)
HSVhsv(50, 30%, 80%)
CMYKcmyk(0%, 4.9%, 29.9%, 20%)
CIE-LABlab(78.11, -4.33, 26.98)
CIE-LCHlch(78.11, 27.32, 99.12°)
OKLaboklab(80.98% -0.0099 0.0677)
OKLCHoklch(80.98% 0.068 98.3)
XYZxyz(49.1520, 53.4052, 33.7003)
Luminance0.5340 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC28F #8F99CC
analogous
#CCA38F #CCC28F #B7CC8F
triadic
#CCC28F #8FCCC2 #C28FCC
tetradic
#CCC28F #8FCCA3 #8F99CC #CC8FB7
square
#CCC28F #8FCCA3 #8F99CC #CC8FB7
split-complementary
#CCC28F #8FB7CC #A38FCC
monochromatic
#9A8D46 #B9AB65 #CCC28F #DFD9B9 #F2F0E3

Accessibility & contrast

On white

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

On black

11.68
#CCC28F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC28F
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC28F#FFFFFF#000000##000000
##CCC28F1.001.8011.6811.68
#FFFFFF1.801.0021.0021.00
#00000011.6821.001.001.00
##00000011.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCBF8C
Deuteranopia (green-blind)
#CFC391
Tritanopia (blue-blind)
#D5BBB5
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #ccc28f;
/* rgb */ color: rgb(204, 194, 143);
/* oklch */ color: oklch(81.0% 0.068 98.3);
Tailwind
colors: {
  custom: {
    50: '#dcd4b0',
    500: '#ccc28f',
    950: '#000000',
  },
}
SCSS
$custom: #ccc28f;
$custom-light: #dcd4b0;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc28f",
  "rgb": {
    "r": 204,
    "g": 194,
    "b": 143
  },
  "hsl": {
    "h": 50.164,
    "s": 37.423,
    "l": 68.039
  },
  "oklch": {
    "l": 0.80982,
    "c": 0.06843,
    "h": 98.3
  },
  "luminance": 0.53404
}

Semantic roles & 50–950 ramp

primary
#CCC28F
secondary
#5E69A1
accent
#49B035
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CCC28F

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

Preview Lab → · Contrast checker → · Palette generator →

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