#CCD240#CCD240

#CCD240 is a very light, vivid yellow. Relative luminance 0.593; OKLCH L 83.3% C 0.162 H 111.8°. Best body text is #000000 at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#CCD240
RGBrgb(204, 210, 64)
HSLhsl(62, 62%, 54%)
HSVhsv(62, 70%, 82%)
CMYKcmyk(2.9%, 0%, 69.5%, 17.6%)
CIE-LABlab(81.46, -19.50, 67.76)
CIE-LCHlch(81.46, 70.51, 106.05°)
OKLaboklab(83.35% -0.0602 0.1508)
OKLCHoklch(83.35% 0.162 111.8)
XYZxyz(48.8754, 59.3019, 13.7213)
Luminance0.5930 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCD240 #4640D2
analogous
#D28F40 #CCD240 #83D240
triadic
#CCD240 #40CCD2 #D240CC
tetradic
#CCD240 #40D28F #4640D2 #D24083
square
#CCD240 #40D28F #4640D2 #D24083
split-complementary
#CCD240 #4083D2 #8F40D2
monochromatic
#777B1D #A7AC29 #CCD240 #D9DE72 #E6E9A3

Accessibility & contrast

On white

1.63
#CCD240 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.86
#CCD240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCD240
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCD240#FFFFFF#000000##000000
##CCD2401.001.6312.8612.86
#FFFFFF1.631.0021.0021.00
#00000012.8621.001.001.00
##00000012.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2C927
Deuteranopia (green-blind)
#E3CC4B
Tritanopia (blue-blind)
#DAC5B5
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #ccd240;
/* rgb */ color: rgb(204, 210, 64);
/* oklch */ color: oklch(83.3% 0.162 111.8);
Tailwind
colors: {
  custom: {
    50: '#dfdf7e',
    500: '#ccd240',
    950: '#000000',
  },
}
SCSS
$custom: #ccd240;
$custom-light: #dfdf7e;
$custom-dark: #000000;
JSON
{
  "hex": "#ccd240",
  "rgb": {
    "r": 204,
    "g": 210,
    "b": 64
  },
  "hsl": {
    "h": 62.466,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.83345,
    "c": 0.1624,
    "h": 111.8
  },
  "luminance": 0.59301
}

Semantic roles & 50–950 ramp

primary
#CCD240
secondary
#373483
accent
#43E54A
background
#FEFEFB
surface
#FCFCF2
border
#D5D5CC
text
#16150A
muted
#84847D

Preview Lab

Preview with #CCD240

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

Preview Lab → · Contrast checker → · Palette generator →

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