#C5D540#C5D540

#C5D540 is a very light, vivid yellow. Relative luminance 0.598; OKLCH L 83.4% C 0.168 H 115.5°. Best body text is #000000 at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#C5D540
RGBrgb(197, 213, 64)
HSLhsl(66, 64%, 54%)
HSVhsv(66, 70%, 84%)
CMYKcmyk(7.5%, 0%, 70%, 16.5%)
CIE-LABlab(81.75, -23.85, 67.86)
CIE-LCHlch(81.75, 71.93, 109.36°)
OKLaboklab(83.45% -0.072 0.1512)
OKLCHoklch(83.45% 0.168 115.5)
XYZxyz(47.7469, 59.8297, 13.8825)
Luminance0.5983 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5D540 #5040D5
analogous
#D59B40 #C5D540 #7BD540
triadic
#C5D540 #40C5D5 #D540C5
tetradic
#C5D540 #40D59B #5040D5 #D5407B
square
#C5D540 #40D59B #5040D5 #D5407B
split-complementary
#C5D540 #407BD5 #9B40D5
monochromatic
#747F1C #A2B127 #C5D540 #D4E072 #E3EBA4

Accessibility & contrast

On white

1.62
#C5D540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.97
#C5D540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5D540
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5D540#FFFFFF#000000##000000
##C5D5401.001.6212.9712.97
#FFFFFF1.621.0021.0021.00
#00000012.9721.001.001.00
##00000012.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4CA26
Deuteranopia (green-blind)
#E3CC4C
Tritanopia (blue-blind)
#D1C9B8
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #c5d540;
/* rgb */ color: rgb(197, 213, 64);
/* oklch */ color: oklch(83.4% 0.168 115.5);
Tailwind
colors: {
  custom: {
    50: '#dae17e',
    500: '#c5d540',
    950: '#000000',
  },
}
SCSS
$custom: #c5d540;
$custom-light: #dae17e;
$custom-dark: #000000;
JSON
{
  "hex": "#c5d540",
  "rgb": {
    "r": 197,
    "g": 213,
    "b": 64
  },
  "hsl": {
    "h": 66.443,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.83445,
    "c": 0.1675,
    "h": 115.5
  },
  "luminance": 0.59829
}

Semantic roles & 50–950 ramp

primary
#C5D540
secondary
#3C3386
accent
#41E753
background
#FEFEFB
surface
#FCFCF2
border
#D5D5CC
text
#15150B
muted
#84847E

Preview Lab

Preview with #C5D540

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

Preview Lab → · Contrast checker → · Palette generator →

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