#CCC948#CCC948

#CCC948 is a light, vivid yellow. Relative luminance 0.551; OKLCH L 81.5% C 0.148 H 108.0°. Best body text is #000000 at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#CCC948
RGBrgb(204, 201, 72)
HSLhsl(59, 56%, 54%)
HSVhsv(59, 65%, 80%)
CMYKcmyk(0%, 1.5%, 64.7%, 20%)
CIE-LABlab(79.09, -14.58, 62.31)
CIE-LCHlch(79.09, 64.00, 103.17°)
OKLaboklab(81.47% -0.0457 0.1406)
OKLCHoklch(81.47% 0.148 108)
XYZxyz(46.9598, 55.0800, 14.2875)
Luminance0.5508 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC948 #484BCC
analogous
#CC8748 #CCC948 #8DCC48
triadic
#CCC948 #48CCC9 #C948CC
tetradic
#CCC948 #48CC87 #484BCC #CC488D
square
#CCC948 #48CC87 #484BCC #CC488D
split-complementary
#CCC948 #488DCC #8748CC
monochromatic
#787621 #A8A52F #CCC948 #D9D778 #E7E5A8

Accessibility & contrast

On white

1.75
#CCC948 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.02
#CCC948 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC948
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC948#FFFFFF#000000##000000
##CCC9481.001.7512.0212.02
#FFFFFF1.751.0021.0021.00
#00000012.0221.001.001.00
##00000012.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C137
Deuteranopia (green-blind)
#DBC650
Tritanopia (blue-blind)
#DABDAF
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #ccc948;
/* rgb */ color: rgb(204, 201, 72);
/* oklch */ color: oklch(81.5% 0.148 108.0);
Tailwind
colors: {
  custom: {
    50: '#dfd981',
    500: '#ccc948',
    950: '#000000',
  },
}
SCSS
$custom: #ccc948;
$custom-light: #dfd981;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc948",
  "rgb": {
    "r": 204,
    "g": 201,
    "b": 72
  },
  "hsl": {
    "h": 58.636,
    "s": 56.41,
    "l": 54.118
  },
  "oklch": {
    "l": 0.8147,
    "c": 0.14784,
    "h": 108
  },
  "luminance": 0.55079
}

Semantic roles & 50–950 ramp

primary
#CCC948
secondary
#383980
accent
#4CE048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CCC948

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

Preview Lab → · Contrast checker → · Palette generator →

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