#CCCF31#CCCF31

#CCCF31 is a very light, vivid yellow. Relative luminance 0.577; OKLCH L 82.6% C 0.168 H 110.7°. Best body text is #000000 at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#CCCF31
RGBrgb(204, 207, 49)
HSLhsl(61, 62%, 50%)
HSVhsv(61, 76%, 81%)
CMYKcmyk(1.4%, 0%, 76.3%, 18.8%)
CIE-LABlab(80.56, -18.69, 71.89)
CIE-LCHlch(80.56, 74.28, 104.57°)
OKLaboklab(82.6% -0.0593 0.157)
OKLCHoklch(82.6% 0.168 110.7)
XYZxyz(47.7708, 57.6861, 11.5233)
Luminance0.5768 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCCF31 #3431CF
analogous
#CF8331 #CCCF31 #7DCF31
triadic
#CCCF31 #31CCCF #CF31CC
tetradic
#CCCF31 #31CF83 #3431CF #CF317D
square
#CCCF31 #31CF83 #3431CF #CF317D
split-complementary
#CCCF31 #317DCF #8331CF
monochromatic
#6B6C19 #9C9E25 #CCCF31 #D8DB63 #E5E694

Accessibility & contrast

On white

1.68
#CCCF31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.54
#CCCF31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCCF31
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCCF31#FFFFFF#000000##000000
##CCCF311.001.6812.5412.54
#FFFFFF1.681.0021.0021.00
#00000012.5421.001.001.00
##00000012.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0C600
Deuteranopia (green-blind)
#E1CA3F
Tritanopia (blue-blind)
#DBC2B2
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #cccf31;
/* rgb */ color: rgb(204, 207, 49);
/* oklch */ color: oklch(82.6% 0.168 110.7);
Tailwind
colors: {
  custom: {
    50: '#e0dd76',
    500: '#cccf31',
    950: '#000000',
  },
}
SCSS
$custom: #cccf31;
$custom-light: #e0dd76;
$custom-dark: #000000;
JSON
{
  "hex": "#cccf31",
  "rgb": {
    "r": 204,
    "g": 207,
    "b": 49
  },
  "hsl": {
    "h": 61.139,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.82604,
    "c": 0.16778,
    "h": 110.7
  },
  "luminance": 0.57685
}

Semantic roles & 50–950 ramp

primary
#CCCF31
secondary
#302E76
accent
#43E546
background
#FEFEFB
surface
#FCFCF1
border
#D5D5CB
text
#161509
muted
#84847D

Preview Lab

Preview with #CCCF31

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

Preview Lab → · Contrast checker → · Palette generator →

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