#C5CC51#C5CC51

#C5CC51 is a light, vivid yellow. Relative luminance 0.556; OKLCH L 81.6% C 0.145 H 112.3°. Best body text is #000000 at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#C5CC51
RGBrgb(197, 204, 81)
HSLhsl(63, 55%, 56%)
HSVhsv(63, 60%, 80%)
CMYKcmyk(3.4%, 0%, 60.3%, 20%)
CIE-LABlab(79.41, -18.41, 58.76)
CIE-LCHlch(79.41, 61.57, 107.40°)
OKLaboklab(81.62% -0.0551 0.1346)
OKLCHoklch(81.62% 0.145 112.3)
XYZxyz(46.1052, 55.6511, 16.0960)
Luminance0.5565 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5CC51 #5851CC
analogous
#CC9551 #C5CC51 #87CC51
triadic
#C5CC51 #51C5CC #CC51C5
tetradic
#C5CC51 #51CC95 #5851CC #CC5187
square
#C5CC51 #51CC95 #5851CC #CC5187
split-complementary
#C5CC51 #5187CC #9551CC
monochromatic
#797E25 #A6AD33 #C5CC51 #D5DA80 #E5E8B0

Accessibility & contrast

On white

1.73
#C5CC51 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.13
#C5CC51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5CC51
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5CC51#FFFFFF#000000##000000
##C5CC511.001.7312.1312.13
#FFFFFF1.731.0021.0021.00
#00000012.1321.001.001.00
##00000012.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC343
Deuteranopia (green-blind)
#DBC659
Tritanopia (blue-blind)
#D1C1B2
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #c5cc51;
/* rgb */ color: rgb(197, 204, 81);
/* oklch */ color: oklch(81.6% 0.145 112.3);
Tailwind
colors: {
  custom: {
    50: '#d9db87',
    500: '#c5cc51',
    950: '#000000',
  },
}
SCSS
$custom: #c5cc51;
$custom-light: #d9db87;
$custom-dark: #000000;
JSON
{
  "hex": "#c5cc51",
  "rgb": {
    "r": 197,
    "g": 204,
    "b": 81
  },
  "hsl": {
    "h": 63.415,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.81619,
    "c": 0.14541,
    "h": 112.3
  },
  "luminance": 0.5565
}

Semantic roles & 50–950 ramp

primary
#C5CC51
secondary
#403C86
accent
#4ADE52
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#15150C
muted
#84847F

Preview Lab

Preview with #C5CC51

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

Preview Lab → · Contrast checker → · Palette generator →

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