#CCCC98#CCCC98

#CCCC98 is a very light, moderate yellow. Relative luminance 0.583; OKLCH L 83.2% C 0.069 H 107.8°. Best body text is #000000 at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#CCCC98
RGBrgb(204, 204, 152)
HSLhsl(60, 34%, 70%)
HSVhsv(60, 25%, 80%)
CMYKcmyk(0%, 0%, 25.5%, 20%)
CIE-LABlab(80.90, -8.31, 26.01)
CIE-LCHlch(80.90, 27.30, 107.72°)
OKLaboklab(83.24% -0.0211 0.0656)
OKLCHoklch(83.24% 0.069 107.8)
XYZxyz(52.1622, 58.2908, 38.2030)
Luminance0.5829 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCCC98 #9898CC
analogous
#CCB298 #CCCC98 #B2CC98
triadic
#CCCC98 #98CCCC #CC98CC
tetradic
#CCCC98 #98CCB2 #9898CC #CC98B2
square
#CCCC98 #98CCB2 #9898CC #CC98B2
split-complementary
#CCCC98 #98B2CC #B298CC
monochromatic
#9C9C4D #B8B86F #CCCC98 #E0E0C1 #F5F5EA

Accessibility & contrast

On white

1.66
#CCCC98 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.66
#CCCC98 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCCC98
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCCC98#FFFFFF#000000##000000
##CCCC981.001.6612.6612.66
#FFFFFF1.661.0021.0021.00
#00000012.6621.001.001.00
##00000012.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5C895
Deuteranopia (green-blind)
#D6CA9A
Tritanopia (blue-blind)
#D4C5BE
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #cccc98;
/* rgb */ color: rgb(204, 204, 152);
/* oklch */ color: oklch(83.2% 0.069 107.8);
Tailwind
colors: {
  custom: {
    50: '#dcdbb6',
    500: '#cccc98',
    950: '#000000',
  },
}
SCSS
$custom: #cccc98;
$custom-light: #dcdbb6;
$custom-dark: #000000;
JSON
{
  "hex": "#cccc98",
  "rgb": {
    "r": 204,
    "g": 204,
    "b": 152
  },
  "hsl": {
    "h": 60,
    "s": 33.766,
    "l": 69.804
  },
  "oklch": {
    "l": 0.8324,
    "c": 0.06886,
    "h": 107.8
  },
  "luminance": 0.5829
}

Semantic roles & 50–950 ramp

primary
#CCCC98
secondary
#6767A1
accent
#39AD39
background
#FEFEFD
surface
#FCFBF8
border
#D5D4D1
text
#151511
muted
#848481

Preview Lab

Preview with #CCCC98

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

Preview Lab → · Contrast checker → · Palette generator →

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