#5F8D21#5F8D21

#5F8D21 is a mid, vivid yellow-green. Relative luminance 0.216; OKLCH L 58.9% C 0.144 H 130.3°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#5F8D21
RGBrgb(95, 141, 33)
HSLhsl(86, 62%, 34%)
HSVhsv(86, 77%, 55%)
CMYKcmyk(32.6%, 0%, 76.6%, 44.7%)
CIE-LABlab(53.59, -32.68, 49.13)
CIE-LCHlch(53.59, 59.01, 123.63°)
OKLaboklab(58.89% -0.0929 0.1095)
OKLCHoklch(58.89% 0.144 130.3)
XYZxyz(14.5186, 21.5920, 4.8413)
Luminance0.2159 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8D21 #4F218D
analogous
#8D8521 #5F8D21 #298D21
triadic
#5F8D21 #215F8D #8D215F
tetradic
#5F8D21 #218D85 #4F218D #8D2129
square
#5F8D21 #218D85 #4F218D #8D2129
split-complementary
#5F8D21 #21298D #85218D
monochromatic
#1C2A0A #3E5B15 #5F8D21 #80BF2D #9ED652

Accessibility & contrast

On white

3.95
#5F8D21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#5F8D21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8D21
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8D21#FFFFFF#000000##000000
##5F8D211.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#948209
Deuteranopia (green-blind)
#8D7F2C
Tritanopia (blue-blind)
#618778
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5f8d21;
/* rgb */ color: rgb(95, 141, 33);
/* oklch */ color: oklch(58.9% 0.144 130.3);
Tailwind
colors: {
  custom: {
    50: '#90ae65',
    500: '#5f8d21',
    950: '#000000',
  },
}
SCSS
$custom: #5f8d21;
$custom-light: #90ae65;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8d21",
  "rgb": {
    "r": 95,
    "g": 141,
    "b": 33
  },
  "hsl": {
    "h": 85.556,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.58891,
    "c": 0.14359,
    "h": 130.3
  },
  "luminance": 0.21592
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F8D21

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

Preview Lab → · Contrast checker → · Palette generator →

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