#5D9D21#5D9D21

#5D9D21 is a light, vivid yellow-green. Relative luminance 0.266; OKLCH L 62.9% C 0.165 H 133.7°. Best body text is #000000 at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#5D9D21
RGBrgb(93, 157, 33)
HSLhsl(91, 65%, 37%)
HSVhsv(91, 79%, 62%)
CMYKcmyk(40.8%, 0%, 79%, 38.4%)
CIE-LABlab(58.56, -40.50, 53.83)
CIE-LCHlch(58.56, 67.37, 126.96°)
OKLaboklab(62.92% -0.1139 0.1194)
OKLCHoklch(62.92% 0.165 133.7)
XYZxyz(16.8454, 26.5501, 5.6756)
Luminance0.2655 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D9D21 #61219D
analogous
#9B9D21 #5D9D21 #219D23
triadic
#5D9D21 #215D9D #9D215D
tetradic
#5D9D21 #219B9D #61219D #9D2321
square
#5D9D21 #219B9D #61219D #9D2321
split-complementary
#5D9D21 #23219D #9D219B
monochromatic
#21380C #3F6A16 #5D9D21 #7BD02C #9ADD5C

Accessibility & contrast

On white

3.33
#5D9D21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.31
#5D9D21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5D9D21
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D9D21#FFFFFF#000000##000000
##5D9D211.003.336.316.31
#FFFFFF3.331.0021.0021.00
#0000006.3121.001.001.00
##0000006.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A39000
Deuteranopia (green-blind)
#9B8B2F
Tritanopia (blue-blind)
#5D9786
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #5d9d21;
/* rgb */ color: rgb(93, 157, 33);
/* oklch */ color: oklch(62.9% 0.165 133.7);
Tailwind
colors: {
  custom: {
    50: '#91ba67',
    500: '#5d9d21',
    950: '#000000',
  },
}
SCSS
$custom: #5d9d21;
$custom-light: #91ba67;
$custom-dark: #000000;
JSON
{
  "hex": "#5d9d21",
  "rgb": {
    "r": 93,
    "g": 157,
    "b": 33
  },
  "hsl": {
    "h": 90.968,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.62918,
    "c": 0.16501,
    "h": 133.7
  },
  "luminance": 0.26551
}

Semantic roles & 50–950 ramp

primary
#5D9D21
secondary
#8F59C1
accent
#40E897
background
#F9FBF6
surface
#F2F6EB
border
#CCD0C6
text
#0D1206
muted
#7E817A

Preview Lab

Preview with #5D9D21

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

Preview Lab → · Contrast checker → · Palette generator →

#5D9D21 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva