#CCC540#CCC540

#CCC540 is a light, vivid yellow. Relative luminance 0.531; OKLCH L 80.6% C 0.150 H 106.3°. Best body text is #000000 at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#CCC540
RGBrgb(204, 197, 64)
HSLhsl(57, 58%, 53%)
HSVhsv(57, 69%, 80%)
CMYKcmyk(0%, 3.4%, 68.6%, 20%)
CIE-LABlab(77.96, -13.01, 64.29)
CIE-LCHlch(77.96, 65.60, 101.44°)
OKLaboklab(80.55% -0.042 0.1435)
OKLCHoklch(80.55% 0.15 106.3)
XYZxyz(45.7953, 53.1416, 12.6946)
Luminance0.5314 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC540 #4047CC
analogous
#CC7F40 #CCC540 #8DCC40
triadic
#CCC540 #40CCC5 #C540CC
tetradic
#CCC540 #40CC7F #4047CC #CC408D
square
#CCC540 #40CC7F #4047CC #CC408D
split-complementary
#CCC540 #408DCC #7F40CC
monochromatic
#736F1F #A39D2C #CCC540 #D9D470 #E6E2A1

Accessibility & contrast

On white

1.81
#CCC540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.63
#CCC540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC540
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC540#FFFFFF#000000##000000
##CCC5401.001.8111.6311.63
#FFFFFF1.811.0021.0021.00
#00000011.6321.001.001.00
##00000011.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BE2C
Deuteranopia (green-blind)
#D9C349
Tritanopia (blue-blind)
#DBB8AA
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #ccc540;
/* rgb */ color: rgb(204, 197, 64);
/* oklch */ color: oklch(80.6% 0.150 106.3);
Tailwind
colors: {
  custom: {
    50: '#dfd67d',
    500: '#ccc540',
    950: '#000000',
  },
}
SCSS
$custom: #ccc540;
$custom-light: #dfd67d;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc540",
  "rgb": {
    "r": 204,
    "g": 197,
    "b": 64
  },
  "hsl": {
    "h": 57,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.80552,
    "c": 0.14953,
    "h": 106.3
  },
  "luminance": 0.5314
}

Semantic roles & 50–950 ramp

primary
#CCC540
secondary
#34387C
accent
#4EE147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CCC540

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

Preview Lab → · Contrast checker → · Palette generator →

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