#CCCC40#CCCC40

#CCCC40 is a very light, vivid yellow. Relative luminance 0.564; OKLCH L 82.1% C 0.156 H 109.4°. Best body text is #000000 at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#CCCC40
RGBrgb(204, 204, 64)
HSLhsl(60, 58%, 53%)
HSVhsv(60, 69%, 80%)
CMYKcmyk(0%, 0%, 68.6%, 20%)
CIE-LABlab(79.84, -16.53, 66.16)
CIE-LCHlch(79.84, 68.19, 104.03°)
OKLaboklab(82.05% -0.0519 0.1474)
OKLCHoklch(82.05% 0.156 109.4)
XYZxyz(47.4218, 56.3947, 13.2367)
Luminance0.5639 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCCC40 #4040CC
analogous
#CC8640 #CCCC40 #86CC40
triadic
#CCCC40 #40CCCC #CC40CC
tetradic
#CCCC40 #40CC86 #4040CC #CC4086
square
#CCCC40 #40CC86 #4040CC #CC4086
split-complementary
#CCCC40 #4086CC #8640CC
monochromatic
#73731F #A3A32C #CCCC40 #D9D970 #E6E6A1

Accessibility & contrast

On white

1.71
#CCCC40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.28
#CCCC40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCCC40
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCCC40#FFFFFF#000000##000000
##CCCC401.001.7112.2812.28
#FFFFFF1.711.0021.0021.00
#00000012.2821.001.001.00
##00000012.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC429
Deuteranopia (green-blind)
#DEC84A
Tritanopia (blue-blind)
#DABFB0
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cccc40;
/* rgb */ color: rgb(204, 204, 64);
/* oklch */ color: oklch(82.1% 0.156 109.4);
Tailwind
colors: {
  custom: {
    50: '#dfdb7d',
    500: '#cccc40',
    950: '#000000',
  },
}
SCSS
$custom: #cccc40;
$custom-light: #dfdb7d;
$custom-dark: #000000;
JSON
{
  "hex": "#cccc40",
  "rgb": {
    "r": 204,
    "g": 204,
    "b": 64
  },
  "hsl": {
    "h": 60,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.82051,
    "c": 0.15632,
    "h": 109.4
  },
  "luminance": 0.56393
}

Semantic roles & 50–950 ramp

primary
#CCCC40
secondary
#34347C
accent
#47E147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CCCC40

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

Preview Lab → · Contrast checker → · Palette generator →

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