#5D8A21#5D8A21

#5D8A21 is a mid, vivid yellow-green. Relative luminance 0.206; OKLCH L 58.0% C 0.141 H 130.4°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#5D8A21
RGBrgb(93, 138, 33)
HSLhsl(86, 61%, 34%)
HSVhsv(86, 76%, 54%)
CMYKcmyk(32.6%, 0%, 76.1%, 45.9%)
CIE-LABlab(52.52, -32.08, 48.06)
CIE-LCHlch(52.52, 57.78, 123.72°)
OKLaboklab(57.99% -0.0911 0.1073)
OKLCHoklch(57.99% 0.141 130.4)
XYZxyz(13.8771, 20.6135, 4.6862)
Luminance0.2061 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D8A21 #4E218A
analogous
#8A8221 #5D8A21 #288A21
triadic
#5D8A21 #215D8A #8A215D
tetradic
#5D8A21 #218A82 #4E218A #8A2128
square
#5D8A21 #218A82 #4E218A #8A2128
split-complementary
#5D8A21 #21288A #82218A
monochromatic
#1A2709 #3C5915 #5D8A21 #7EBB2D #9CD550

Accessibility & contrast

On white

4.10
#5D8A21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#5D8A21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5D8A21
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D8A21#FFFFFF#000000##000000
##5D8A211.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F0B
Deuteranopia (green-blind)
#8A7C2B
Tritanopia (blue-blind)
#5F8476
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5d8a21;
/* rgb */ color: rgb(93, 138, 33);
/* oklch */ color: oklch(58.0% 0.141 130.4);
Tailwind
colors: {
  custom: {
    50: '#8fac64',
    500: '#5d8a21',
    950: '#000000',
  },
}
SCSS
$custom: #5d8a21;
$custom-light: #8fac64;
$custom-dark: #000000;
JSON
{
  "hex": "#5d8a21",
  "rgb": {
    "r": 93,
    "g": 138,
    "b": 33
  },
  "hsl": {
    "h": 85.714,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.57991,
    "c": 0.14076,
    "h": 130.4
  },
  "luminance": 0.20614
}

Semantic roles & 50–950 ramp

primary
#5D8A21
secondary
#7C4EB9
accent
#43E588
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5D8A21

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

Preview Lab → · Contrast checker → · Palette generator →

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