#CCC157#CCC157

#CCC157 is a light, vivid yellow. Relative luminance 0.517; OKLCH L 79.9% C 0.128 H 103.4°. Best body text is #000000 at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#CCC157
RGBrgb(204, 193, 87)
HSLhsl(54, 53%, 57%)
HSVhsv(54, 57%, 80%)
CMYKcmyk(0%, 5.4%, 57.4%, 20%)
CIE-LABlab(77.08, -9.52, 53.68)
CIE-LCHlch(77.08, 54.52, 100.06°)
OKLaboklab(79.91% -0.0296 0.1244)
OKLCHoklch(79.91% 0.128 103.4)
XYZxyz(45.6936, 51.6670, 16.5808)
Luminance0.5167 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC157 #5762CC
analogous
#CC8757 #CCC157 #9DCC57
triadic
#CCC157 #57CCC1 #C157CC
tetradic
#CCC157 #57CC87 #5762CC #CC579D
square
#CCC157 #57CC87 #5762CC #CC579D
split-complementary
#CCC157 #579DCC #8757CC
monochromatic
#817927 #B0A536 #CCC157 #DAD286 #E9E4B5

Accessibility & contrast

On white

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

On black

11.33
#CCC157 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC157
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC157#FFFFFF#000000##000000
##CCC1571.001.8511.3311.33
#FFFFFF1.851.0021.0021.00
#00000011.3321.001.001.00
##00000011.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BB4C
Deuteranopia (green-blind)
#D4C15C
Tritanopia (blue-blind)
#DAB5AA
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #ccc157;
/* rgb */ color: rgb(204, 193, 87);
/* oklch */ color: oklch(79.9% 0.128 103.4);
Tailwind
colors: {
  custom: {
    50: '#ded38a',
    500: '#ccc157',
    950: '#000000',
  },
}
SCSS
$custom: #ccc157;
$custom-light: #ded38a;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc157",
  "rgb": {
    "r": 204,
    "g": 193,
    "b": 87
  },
  "hsl": {
    "h": 54.359,
    "s": 53.425,
    "l": 57.059
  },
  "oklch": {
    "l": 0.79914,
    "c": 0.12785,
    "h": 103.4
  },
  "luminance": 0.51665
}

Semantic roles & 50–950 ramp

primary
#CCC157
secondary
#3E4589
accent
#59DD4B
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140C
muted
#84837F

Preview Lab

Preview with #CCC157

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

Preview Lab → · Contrast checker → · Palette generator →

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