#CCC257#CCC257

#CCC257 is a light, vivid yellow. Relative luminance 0.521; OKLCH L 80.1% C 0.129 H 104.0°. Best body text is #000000 at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#CCC257
RGBrgb(204, 194, 87)
HSLhsl(55, 53%, 57%)
HSVhsv(55, 57%, 80%)
CMYKcmyk(0%, 4.9%, 57.4%, 20%)
CIE-LABlab(77.35, -10.03, 53.98)
CIE-LCHlch(77.35, 54.91, 100.53°)
OKLaboklab(80.13% -0.0311 0.125)
OKLCHoklch(80.13% 0.129 104)
XYZxyz(45.9154, 52.1106, 16.6547)
Luminance0.5211 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC257 #5761CC
analogous
#CC8857 #CCC257 #9CCC57
triadic
#CCC257 #57CCC2 #C257CC
tetradic
#CCC257 #57CC88 #5761CC #CC579C
square
#CCC257 #57CC88 #5761CC #CC579C
split-complementary
#CCC257 #579CCC #8857CC
monochromatic
#817A27 #B0A636 #CCC257 #DAD386 #E9E4B5

Accessibility & contrast

On white

1.84
#CCC257 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.42
#CCC257 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC257
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC257#FFFFFF#000000##000000
##CCC2571.001.8411.4211.42
#FFFFFF1.841.0021.0021.00
#00000011.4221.001.001.00
##00000011.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BC4C
Deuteranopia (green-blind)
#D5C25D
Tritanopia (blue-blind)
#DAB6AB
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #ccc257;
/* rgb */ color: rgb(204, 194, 87);
/* oklch */ color: oklch(80.1% 0.129 104.0);
Tailwind
colors: {
  custom: {
    50: '#ded48a',
    500: '#ccc257',
    950: '#000000',
  },
}
SCSS
$custom: #ccc257;
$custom-light: #ded48a;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc257",
  "rgb": {
    "r": 204,
    "g": 194,
    "b": 87
  },
  "hsl": {
    "h": 54.872,
    "s": 53.425,
    "l": 57.059
  },
  "oklch": {
    "l": 0.80125,
    "c": 0.12882,
    "h": 104
  },
  "luminance": 0.52109
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CCC257

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

Preview Lab → · Contrast checker → · Palette generator →

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