#C5D940#C5D940

#C5D940 is a very light, vivid yellow. Relative luminance 0.619; OKLCH L 84.3% C 0.172 H 116.7°. Best body text is #000000 at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#C5D940
RGBrgb(197, 217, 64)
HSLhsl(68, 67%, 55%)
HSVhsv(68, 71%, 85%)
CMYKcmyk(9.2%, 0%, 70.5%, 14.9%)
CIE-LABlab(82.84, -25.77, 68.94)
CIE-LCHlch(82.84, 73.60, 110.49°)
OKLaboklab(84.33% -0.0773 0.1535)
OKLCHoklch(84.33% 0.172 116.7)
XYZxyz(48.7654, 61.8668, 14.2220)
Luminance0.6187 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5D940 #5440D9
analogous
#D9A040 #C5D940 #79D940
triadic
#C5D940 #40C5D9 #D940C5
tetradic
#C5D940 #40D9A0 #5440D9 #D94079
square
#C5D940 #40D9A0 #5440D9 #D94079
split-complementary
#C5D940 #4079D9 #A040D9
monochromatic
#76841A #A4B724 #C5D940 #D5E373 #E4EDA6

Accessibility & contrast

On white

1.57
#C5D940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.37
#C5D940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5D940
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5D940#FFFFFF#000000##000000
##C5D9401.001.5713.3713.37
#FFFFFF1.571.0021.0021.00
#00000013.3721.001.001.00
##00000013.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8CE25
Deuteranopia (green-blind)
#E6CF4C
Tritanopia (blue-blind)
#D1CDBB
Achromatopsia (no color)
#CECECE

Design tokens & code

CSS
--color: #c5d940;
/* rgb */ color: rgb(197, 217, 64);
/* oklch */ color: oklch(84.3% 0.172 116.7);
Tailwind
colors: {
  custom: {
    50: '#dae47e',
    500: '#c5d940',
    950: '#000000',
  },
}
SCSS
$custom: #c5d940;
$custom-light: #dae47e;
$custom-dark: #000000;
JSON
{
  "hex": "#c5d940",
  "rgb": {
    "r": 197,
    "g": 217,
    "b": 64
  },
  "hsl": {
    "h": 67.843,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.84326,
    "c": 0.17187,
    "h": 116.7
  },
  "luminance": 0.61866
}

Semantic roles & 50–950 ramp

primary
#C5D940
secondary
#3E328B
accent
#3EEA55
background
#FEFEFB
surface
#FCFCF2
border
#D5D5CC
text
#15150B
muted
#84847E

Preview Lab

Preview with #C5D940

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

Preview Lab → · Contrast checker → · Palette generator →

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