#CCC240#CCC240

#CCC240 is a light, vivid yellow. Relative luminance 0.518; OKLCH L 79.9% C 0.147 H 104.9°. Best body text is #000000 at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#CCC240
RGBrgb(204, 194, 64)
HSLhsl(56, 58%, 53%)
HSVhsv(56, 69%, 80%)
CMYKcmyk(0%, 4.9%, 68.6%, 20%)
CIE-LABlab(77.16, -11.49, 63.49)
CIE-LCHlch(77.16, 64.52, 100.26°)
OKLaboklab(79.91% -0.0377 0.1418)
OKLCHoklch(79.91% 0.147 104.9)
XYZxyz(45.1208, 51.7928, 12.4698)
Luminance0.5179 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC240 #404ACC
analogous
#CC7C40 #CCC240 #90CC40
triadic
#CCC240 #40CCC2 #C240CC
tetradic
#CCC240 #40CC7C #404ACC #CC4090
square
#CCC240 #40CC7C #404ACC #CC4090
split-complementary
#CCC240 #4090CC #7C40CC
monochromatic
#736D1F #A39B2C #CCC240 #D9D170 #E6E1A1

Accessibility & contrast

On white

1.85
#CCC240 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.36
#CCC240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC240
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC240#FFFFFF#000000##000000
##CCC2401.001.8511.3611.36
#FFFFFF1.851.0021.0021.00
#00000011.3621.001.001.00
##00000011.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BB2C
Deuteranopia (green-blind)
#D6C148
Tritanopia (blue-blind)
#DBB5A8
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #ccc240;
/* rgb */ color: rgb(204, 194, 64);
/* oklch */ color: oklch(79.9% 0.147 104.9);
Tailwind
colors: {
  custom: {
    50: '#dfd47c',
    500: '#ccc240',
    950: '#000000',
  },
}
SCSS
$custom: #ccc240;
$custom-light: #dfd47c;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc240",
  "rgb": {
    "r": 204,
    "g": 194,
    "b": 64
  },
  "hsl": {
    "h": 55.714,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.79913,
    "c": 0.14675,
    "h": 104.9
  },
  "luminance": 0.51791
}

Semantic roles & 50–950 ramp

primary
#CCC240
secondary
#343A7C
accent
#52E147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CCC240

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

Preview Lab → · Contrast checker → · Palette generator →

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