#CCC047#CCC047

#CCC047 is a light, vivid yellow. Relative luminance 0.510; OKLCH L 79.5% C 0.140 H 103.6°. Best body text is #000000 at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#CCC047
RGBrgb(204, 192, 71)
HSLhsl(55, 57%, 54%)
HSVhsv(55, 65%, 80%)
CMYKcmyk(0%, 5.9%, 65.2%, 20%)
CIE-LABlab(76.67, -10.08, 60.21)
CIE-LCHlch(76.67, 61.05, 99.50°)
OKLaboklab(79.55% -0.033 0.136)
OKLCHoklch(79.55% 0.14 103.6)
XYZxyz(44.8906, 50.9933, 13.4381)
Luminance0.5099 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC047 #4753CC
analogous
#CC7E47 #CCC047 #96CC47
triadic
#CCC047 #47CCC0 #C047CC
tetradic
#CCC047 #47CC7E #4753CC #CC4796
square
#CCC047 #47CC7E #4753CC #CC4796
split-complementary
#CCC047 #4796CC #7E47CC
monochromatic
#777021 #A79C2E #CCC047 #D9D077 #E7E1A7

Accessibility & contrast

On white

1.88
#CCC047 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.20
#CCC047 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC047
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC047#FFFFFF#000000##000000
##CCC0471.001.8811.2011.20
#FFFFFF1.881.0021.0021.00
#00000011.2021.001.001.00
##00000011.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BA37
Deuteranopia (green-blind)
#D4C04E
Tritanopia (blue-blind)
#DBB3A7
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #ccc047;
/* rgb */ color: rgb(204, 192, 71);
/* oklch */ color: oklch(79.5% 0.140 103.6);
Tailwind
colors: {
  custom: {
    50: '#dfd280',
    500: '#ccc047',
    950: '#000000',
  },
}
SCSS
$custom: #ccc047;
$custom-light: #dfd280;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc047",
  "rgb": {
    "r": 204,
    "g": 192,
    "b": 71
  },
  "hsl": {
    "h": 54.586,
    "s": 56.596,
    "l": 53.922
  },
  "oklch": {
    "l": 0.79546,
    "c": 0.13997,
    "h": 103.6
  },
  "luminance": 0.50992
}

Semantic roles & 50–950 ramp

primary
#CCC047
secondary
#373E80
accent
#56E048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CCC047

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

Preview Lab → · Contrast checker → · Palette generator →

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