#CCC340#CCC340

#CCC340 is a light, vivid yellow. Relative luminance 0.522; OKLCH L 80.1% C 0.148 H 105.4°. Best body text is #000000 at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#CCC340
RGBrgb(204, 195, 64)
HSLhsl(56, 58%, 53%)
HSVhsv(56, 69%, 80%)
CMYKcmyk(0%, 4.4%, 68.6%, 20%)
CIE-LABlab(77.42, -12.00, 63.76)
CIE-LCHlch(77.42, 64.88, 100.66°)
OKLaboklab(80.13% -0.0392 0.1424)
OKLCHoklch(80.13% 0.148 105.4)
XYZxyz(45.3441, 52.2394, 12.5442)
Luminance0.5224 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC340 #4049CC
analogous
#CC7D40 #CCC340 #8FCC40
triadic
#CCC340 #40CCC3 #C340CC
tetradic
#CCC340 #40CC7D #4049CC #CC408F
square
#CCC340 #40CC7D #4049CC #CC408F
split-complementary
#CCC340 #408FCC #7D40CC
monochromatic
#736E1F #A39C2C #CCC340 #D9D270 #E6E1A1

Accessibility & contrast

On white

1.83
#CCC340 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.45
#CCC340 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC340
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC340#FFFFFF#000000##000000
##CCC3401.001.8311.4511.45
#FFFFFF1.831.0021.0021.00
#00000011.4521.001.001.00
##00000011.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BC2C
Deuteranopia (green-blind)
#D7C249
Tritanopia (blue-blind)
#DBB6A9
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #ccc340;
/* rgb */ color: rgb(204, 195, 64);
/* oklch */ color: oklch(80.1% 0.148 105.4);
Tailwind
colors: {
  custom: {
    50: '#dfd47c',
    500: '#ccc340',
    950: '#000000',
  },
}
SCSS
$custom: #ccc340;
$custom-light: #dfd47c;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc340",
  "rgb": {
    "r": 204,
    "g": 195,
    "b": 64
  },
  "hsl": {
    "h": 56.143,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.80126,
    "c": 0.14767,
    "h": 105.4
  },
  "luminance": 0.52238
}

Semantic roles & 50–950 ramp

primary
#CCC340
secondary
#34397C
accent
#51E147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CCC340

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

Preview Lab → · Contrast checker → · Palette generator →

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