#C5CD51#C5CD51

#C5CD51 is a light, vivid yellow. Relative luminance 0.561; OKLCH L 81.8% C 0.147 H 112.7°. Best body text is #000000 at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#C5CD51
RGBrgb(197, 205, 81)
HSLhsl(64, 55%, 56%)
HSVhsv(64, 60%, 80%)
CMYKcmyk(3.9%, 0%, 60.5%, 19.6%)
CIE-LABlab(79.69, -18.90, 59.05)
CIE-LCHlch(79.69, 62.00, 107.75°)
OKLaboklab(81.84% -0.0565 0.1352)
OKLCHoklch(81.84% 0.147 112.7)
XYZxyz(46.3437, 56.1280, 16.1755)
Luminance0.5613 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5CD51 #5951CD
analogous
#CD9751 #C5CD51 #87CD51
triadic
#C5CD51 #51C5CD #CD51C5
tetradic
#C5CD51 #51CD97 #5951CD #CD5187
square
#C5CD51 #51CD97 #5951CD #CD5187
split-complementary
#C5CD51 #5187CD #9751CD
monochromatic
#797F25 #A7AF32 #C5CD51 #D5DB81 #E5E8B0

Accessibility & contrast

On white

1.72
#C5CD51 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.23
#C5CD51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5CD51
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5CD51#FFFFFF#000000##000000
##C5CD511.001.7212.2312.23
#FFFFFF1.721.0021.0021.00
#00000012.2321.001.001.00
##00000012.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC442
Deuteranopia (green-blind)
#DBC759
Tritanopia (blue-blind)
#D1C2B3
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #c5cd51;
/* rgb */ color: rgb(197, 205, 81);
/* oklch */ color: oklch(81.8% 0.147 112.7);
Tailwind
colors: {
  custom: {
    50: '#d9dc87',
    500: '#c5cd51',
    950: '#000000',
  },
}
SCSS
$custom: #c5cd51;
$custom-light: #d9dc87;
$custom-dark: #000000;
JSON
{
  "hex": "#c5cd51",
  "rgb": {
    "r": 197,
    "g": 205,
    "b": 81
  },
  "hsl": {
    "h": 63.871,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.81836,
    "c": 0.14651,
    "h": 112.7
  },
  "luminance": 0.56127
}

Semantic roles & 50–950 ramp

primary
#C5CD51
secondary
#403B87
accent
#49DF53
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#15150C
muted
#84847F

Preview Lab

Preview with #C5CD51

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

Preview Lab → · Contrast checker → · Palette generator →

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