#CCC662#CCC662

#CCC662 is a light, vivid yellow. Relative luminance 0.541; OKLCH L 81.1% C 0.123 H 105.7°. Best body text is #000000 at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#CCC662
RGBrgb(204, 198, 98)
HSLhsl(57, 51%, 59%)
HSVhsv(57, 52%, 80%)
CMYKcmyk(0%, 2.9%, 52%, 20%)
CIE-LABlab(78.53, -11.20, 50.23)
CIE-LCHlch(78.53, 51.46, 102.57°)
OKLaboklab(81.1% -0.0332 0.1181)
OKLCHoklch(81.1% 0.123 105.7)
XYZxyz(47.3018, 54.1088, 19.5052)
Luminance0.5411 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC662 #6268CC
analogous
#CC9162 #CCC662 #9DCC62
triadic
#CCC662 #62CCC6 #C662CC
tetradic
#CCC662 #62CC91 #6268CC #CC629D
square
#CCC662 #62CC91 #6268CC #CC629D
split-complementary
#CCC662 #629DCC #9162CC
monochromatic
#88822C #B6AF3B #CCC662 #DBD790 #EAE8BE

Accessibility & contrast

On white

1.78
#CCC662 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.82
#CCC662 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC662
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC662#FFFFFF#000000##000000
##CCC6621.001.7811.8211.82
#FFFFFF1.781.0021.0021.00
#00000011.8221.001.001.00
##00000011.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4C059
Deuteranopia (green-blind)
#D7C467
Tritanopia (blue-blind)
#D9BBAF
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #ccc662;
/* rgb */ color: rgb(204, 198, 98);
/* oklch */ color: oklch(81.1% 0.123 105.7);
Tailwind
colors: {
  custom: {
    50: '#ded791',
    500: '#ccc662',
    950: '#000000',
  },
}
SCSS
$custom: #ccc662;
$custom-light: #ded791;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc662",
  "rgb": {
    "r": 204,
    "g": 198,
    "b": 98
  },
  "hsl": {
    "h": 56.604,
    "s": 50.962,
    "l": 59.216
  },
  "oklch": {
    "l": 0.81099,
    "c": 0.1227,
    "h": 105.7
  },
  "luminance": 0.54107
}

Semantic roles & 50–950 ramp

primary
#CCC662
secondary
#44488F
accent
#55DA4D
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CCC662

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

Preview Lab → · Contrast checker → · Palette generator →

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