#5F8A1E#5F8A1E

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

Color values

HEX#5F8A1E
RGBrgb(95, 138, 30)
HSLhsl(84, 64%, 33%)
HSVhsv(84, 78%, 54%)
CMYKcmyk(31.2%, 0%, 78.3%, 45.9%)
CIE-LABlab(52.62, -31.47, 49.25)
CIE-LCHlch(52.62, 58.44, 122.58°)
OKLaboklab(58.1% -0.0898 0.1092)
OKLCHoklch(58.1% 0.141 129.4)
XYZxyz(14.0421, 20.7032, 4.4843)
Luminance0.2070 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8A1E #491E8A
analogous
#8A7F1E #5F8A1E #298A1E
triadic
#5F8A1E #1E5F8A #8A1E5F
tetradic
#5F8A1E #1E8A7F #491E8A #8A1E29
square
#5F8A1E #1E8A7F #491E8A #8A1E29
split-complementary
#5F8A1E #1E298A #7F1E8A
monochromatic
#1A2508 #3C5813 #5F8A1E #82BC29 #A0D84B

Accessibility & contrast

On white

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

On black

5.14
#5F8A1E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8A1E
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8A1E#FFFFFF#000000##000000
##5F8A1E1.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f8a1e;
/* rgb */ color: rgb(95, 138, 30);
/* oklch */ color: oklch(58.1% 0.141 129.4);
Tailwind
colors: {
  custom: {
    50: '#90ac63',
    500: '#5f8a1e',
    950: '#000000',
  },
}
SCSS
$custom: #5f8a1e;
$custom-light: #90ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8a1e",
  "rgb": {
    "r": 95,
    "g": 138,
    "b": 30
  },
  "hsl": {
    "h": 83.889,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.58097,
    "c": 0.14144,
    "h": 129.4
  },
  "luminance": 0.20704
}

Semantic roles & 50–950 ramp

primary
#5F8A1E
secondary
#764ABA
accent
#41E783
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F8A1E

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

Preview Lab → · Contrast checker → · Palette generator →

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