#5F8D1E#5F8D1E

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

Color values

HEX#5F8D1E
RGBrgb(95, 141, 30)
HSLhsl(85, 65%, 34%)
HSVhsv(85, 79%, 55%)
CMYKcmyk(32.6%, 0%, 78.7%, 44.7%)
CIE-LABlab(53.57, -32.86, 50.15)
CIE-LCHlch(53.57, 59.95, 123.23°)
OKLaboklab(58.87% -0.0936 0.1111)
OKLCHoklch(58.87% 0.145 130.1)
XYZxyz(14.4785, 21.5759, 4.6298)
Luminance0.2158 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8D1E #4C1E8D
analogous
#8D831E #5F8D1E #278D1E
triadic
#5F8D1E #1E5F8D #8D1E5F
tetradic
#5F8D1E #1E8D83 #4C1E8D #8D1E27
square
#5F8D1E #1E8D83 #4C1E8D #8D1E27
split-complementary
#5F8D1E #1E278D #831E8D
monochromatic
#1B2809 #3D5B13 #5F8D1E #81BF29 #9FD94C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F8D1E#FFFFFF#000000##000000
##5F8D1E1.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)
#948201
Deuteranopia (green-blind)
#8D7F2A
Tritanopia (blue-blind)
#628778
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5f8d1e;
/* rgb */ color: rgb(95, 141, 30);
/* oklch */ color: oklch(58.9% 0.145 130.1);
Tailwind
colors: {
  custom: {
    50: '#91ae63',
    500: '#5f8d1e',
    950: '#000000',
  },
}
SCSS
$custom: #5f8d1e;
$custom-light: #91ae63;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8d1e",
  "rgb": {
    "r": 95,
    "g": 141,
    "b": 30
  },
  "hsl": {
    "h": 84.865,
    "s": 64.912,
    "l": 33.529
  },
  "oklch": {
    "l": 0.58872,
    "c": 0.1453,
    "h": 130.1
  },
  "luminance": 0.21576
}

Semantic roles & 50–950 ramp

primary
#5F8D1E
secondary
#7A4BBC
accent
#40E886
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F8D1E

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

Preview Lab → · Contrast checker → · Palette generator →

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