#5F8D24#5F8D24

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

Color values

HEX#5F8D24
RGBrgb(95, 141, 36)
HSLhsl(86, 59%, 35%)
HSVhsv(86, 74%, 55%)
CMYKcmyk(32.6%, 0%, 74.5%, 44.7%)
CIE-LABlab(53.61, -32.50, 48.05)
CIE-LCHlch(53.61, 58.01, 124.07°)
OKLaboklab(58.91% -0.0922 0.1077)
OKLCHoklch(58.91% 0.142 130.6)
XYZxyz(14.5625, 21.6095, 5.0725)
Luminance0.2161 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8D24 #52248D
analogous
#8D8724 #5F8D24 #2A8D24
triadic
#5F8D24 #245F8D #8D245F
tetradic
#5F8D24 #248D87 #52248D #8D242A
square
#5F8D24 #248D87 #52248D #8D242A
split-complementary
#5F8D24 #242A8D #87248D
monochromatic
#1D2B0B #3E5C18 #5F8D24 #80BE30 #9DD457

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F8D24#FFFFFF#000000##000000
##5F8D241.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)
#948210
Deuteranopia (green-blind)
#8D7F2E
Tritanopia (blue-blind)
#618779
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5f8d24;
/* rgb */ color: rgb(95, 141, 36);
/* oklch */ color: oklch(58.9% 0.142 130.6);
Tailwind
colors: {
  custom: {
    50: '#90ae66',
    500: '#5f8d24',
    950: '#000000',
  },
}
SCSS
$custom: #5f8d24;
$custom-light: #90ae66;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8d24",
  "rgb": {
    "r": 95,
    "g": 141,
    "b": 36
  },
  "hsl": {
    "h": 86.286,
    "s": 59.322,
    "l": 34.706
  },
  "oklch": {
    "l": 0.58912,
    "c": 0.14175,
    "h": 130.6
  },
  "luminance": 0.2161
}

Semantic roles & 50–950 ramp

primary
#5F8D24
secondary
#8054B8
accent
#45E38A
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F8D24

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

Preview Lab → · Contrast checker → · Palette generator →

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