#CCC251#CCC251

#CCC251 is a light, vivid yellow. Relative luminance 0.520; OKLCH L 80.1% C 0.134 H 104.3°. Best body text is #000000 at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#CCC251
RGBrgb(204, 194, 81)
HSLhsl(55, 55%, 56%)
HSVhsv(55, 60%, 80%)
CMYKcmyk(0%, 4.9%, 60.3%, 20%)
CIE-LABlab(77.29, -10.46, 56.60)
CIE-LCHlch(77.29, 57.56, 100.47°)
OKLaboklab(80.06% -0.033 0.1298)
OKLCHoklch(80.06% 0.134 104.3)
XYZxyz(45.6804, 52.0166, 15.4170)
Luminance0.5202 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC251 #515BCC
analogous
#CC8451 #CCC251 #98CC51
triadic
#CCC251 #51CCC2 #C251CC
tetradic
#CCC251 #51CC84 #515BCC #CC5198
square
#CCC251 #51CC84 #515BCC #CC5198
split-complementary
#CCC251 #5198CC #8451CC
monochromatic
#7E7725 #ADA333 #CCC251 #DAD380 #E8E3B0

Accessibility & contrast

On white

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

On black

11.40
#CCC251 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC251
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC251#FFFFFF#000000##000000
##CCC2511.001.8411.4011.40
#FFFFFF1.841.0021.0021.00
#00000011.4021.001.001.00
##00000011.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BC44
Deuteranopia (green-blind)
#D5C157
Tritanopia (blue-blind)
#DAB6AA
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #ccc251;
/* rgb */ color: rgb(204, 194, 81);
/* oklch */ color: oklch(80.1% 0.134 104.3);
Tailwind
colors: {
  custom: {
    50: '#ded486',
    500: '#ccc251',
    950: '#000000',
  },
}
SCSS
$custom: #ccc251;
$custom-light: #ded486;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc251",
  "rgb": {
    "r": 204,
    "g": 194,
    "b": 81
  },
  "hsl": {
    "h": 55.122,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.80063,
    "c": 0.13396,
    "h": 104.3
  },
  "luminance": 0.52015
}

Semantic roles & 50–950 ramp

primary
#CCC251
secondary
#3C4286
accent
#56DE4A
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CCC251

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

Preview Lab → · Contrast checker → · Palette generator →

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