#CCCE40#CCCE40

#CCCE40 is a very light, vivid yellow. Relative luminance 0.574; OKLCH L 82.5% C 0.158 H 110.2°. Best body text is #000000 at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#CCCE40
RGBrgb(204, 206, 64)
HSLhsl(61, 59%, 53%)
HSVhsv(61, 69%, 81%)
CMYKcmyk(1%, 0%, 68.9%, 19.2%)
CIE-LABlab(80.38, -17.52, 66.69)
CIE-LCHlch(80.38, 68.96, 104.72°)
OKLaboklab(82.48% -0.0547 0.1486)
OKLCHoklch(82.48% 0.158 110.2)
XYZxyz(47.9002, 57.3515, 13.3962)
Luminance0.5735 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCCE40 #4240CE
analogous
#CE8940 #CCCE40 #85CE40
triadic
#CCCE40 #40CCCE #CE40CC
tetradic
#CCCE40 #40CE89 #4240CE #CE4085
square
#CCCE40 #40CE89 #4240CE #CE4085
split-complementary
#CCCE40 #4085CE #8940CE
monochromatic
#74751E #A4A62B #CCCE40 #D9DA71 #E6E7A1

Accessibility & contrast

On white

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

On black

12.47
#CCCE40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCCE40
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCCE40#FFFFFF#000000##000000
##CCCE401.001.6812.4712.47
#FFFFFF1.681.0021.0021.00
#00000012.4721.001.001.00
##00000012.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#DEC529
Deuteranopia (green-blind)
#DFC94A
Tritanopia (blue-blind)
#DAC1B2
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #ccce40;
/* rgb */ color: rgb(204, 206, 64);
/* oklch */ color: oklch(82.5% 0.158 110.2);
Tailwind
colors: {
  custom: {
    50: '#dfdc7e',
    500: '#ccce40',
    950: '#000000',
  },
}
SCSS
$custom: #ccce40;
$custom-light: #dfdc7e;
$custom-dark: #000000;
JSON
{
  "hex": "#ccce40",
  "rgb": {
    "r": 204,
    "g": 206,
    "b": 64
  },
  "hsl": {
    "h": 60.845,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.82481,
    "c": 0.15831,
    "h": 110.2
  },
  "luminance": 0.5735
}

Semantic roles & 50–950 ramp

primary
#CCCE40
secondary
#35347E
accent
#45E248
background
#FEFEFB
surface
#FCFCF2
border
#D5D5CC
text
#16150A
muted
#84847D

Preview Lab

Preview with #CCCE40

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

Preview Lab → · Contrast checker → · Palette generator →

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