#5F8A24#5F8A24

#5F8A24 is a mid, vivid yellow-green. Relative luminance 0.207; OKLCH L 58.1% C 0.138 H 129.9°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#5F8A24
RGBrgb(95, 138, 36)
HSLhsl(85, 59%, 34%)
HSVhsv(85, 74%, 54%)
CMYKcmyk(31.2%, 0%, 73.9%, 45.9%)
CIE-LABlab(52.66, -31.10, 47.11)
CIE-LCHlch(52.66, 56.45, 123.43°)
OKLaboklab(58.14% -0.0884 0.1057)
OKLCHoklch(58.14% 0.138 129.9)
XYZxyz(14.1262, 20.7368, 4.9271)
Luminance0.2074 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8A24 #4F248A
analogous
#8A8224 #5F8A24 #2C8A24
triadic
#5F8A24 #245F8A #8A245F
tetradic
#5F8A24 #248A82 #4F248A #8A242C
square
#5F8A24 #248A82 #4F248A #8A242C
split-complementary
#5F8A24 #242C8A #82248A
monochromatic
#1C290B #3E5917 #5F8A24 #80BB31 #9ED356

Accessibility & contrast

On white

4.08
#5F8A24 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#5F8A24 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8A24
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8A24#FFFFFF#000000##000000
##5F8A241.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#918012
Deuteranopia (green-blind)
#8B7D2D
Tritanopia (blue-blind)
#628476
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f8a24;
/* rgb */ color: rgb(95, 138, 36);
/* oklch */ color: oklch(58.1% 0.138 129.9);
Tailwind
colors: {
  custom: {
    50: '#90ac66',
    500: '#5f8a24',
    950: '#000000',
  },
}
SCSS
$custom: #5f8a24;
$custom-light: #90ac66;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8a24",
  "rgb": {
    "r": 95,
    "g": 138,
    "b": 36
  },
  "hsl": {
    "h": 85.294,
    "s": 58.621,
    "l": 34.118
  },
  "oklch": {
    "l": 0.58139,
    "c": 0.13779,
    "h": 129.9
  },
  "luminance": 0.20737
}

Semantic roles & 50–950 ramp

primary
#5F8A24
secondary
#7D53B7
accent
#46E288
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F8A24

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

Preview Lab → · Contrast checker → · Palette generator →

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