#5F8A25#5F8A25

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

Color values

HEX#5F8A25
RGBrgb(95, 138, 37)
HSLhsl(86, 58%, 34%)
HSVhsv(86, 73%, 54%)
CMYKcmyk(31.2%, 0%, 73.2%, 45.9%)
CIE-LABlab(52.67, -31.03, 46.73)
CIE-LCHlch(52.67, 56.10, 123.59°)
OKLaboklab(58.15% -0.0881 0.1051)
OKLCHoklch(58.15% 0.137 130)
XYZxyz(14.1416, 20.7430, 5.0086)
Luminance0.2074 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8A25 #50258A
analogous
#8A8325 #5F8A25 #2C8A25
triadic
#5F8A25 #255F8A #8A255F
tetradic
#5F8A25 #258A83 #50258A #8A252C
square
#5F8A25 #258A83 #50258A #8A252C
split-complementary
#5F8A25 #252C8A #83258A
monochromatic
#1D290B #3E5A18 #5F8A25 #80BA32 #9ED257

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F8A25#FFFFFF#000000##000000
##5F8A251.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)
#918014
Deuteranopia (green-blind)
#8B7D2E
Tritanopia (blue-blind)
#628476
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f8a25;
/* rgb */ color: rgb(95, 138, 37);
/* oklch */ color: oklch(58.1% 0.137 130.0);
Tailwind
colors: {
  custom: {
    50: '#90ac66',
    500: '#5f8a25',
    950: '#000000',
  },
}
SCSS
$custom: #5f8a25;
$custom-light: #90ac66;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8a25",
  "rgb": {
    "r": 95,
    "g": 138,
    "b": 37
  },
  "hsl": {
    "h": 85.545,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.58147,
    "c": 0.13713,
    "h": 130
  },
  "luminance": 0.20743
}

Semantic roles & 50–950 ramp

primary
#5F8A25
secondary
#7E54B7
accent
#47E188
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F8A25

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

Preview Lab → · Contrast checker → · Palette generator →

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