#5F8E1F#5F8E1F

#5F8E1F is a mid, vivid yellow-green. Relative luminance 0.219; OKLCH L 59.1% C 0.146 H 130.4°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#5F8E1F
RGBrgb(95, 142, 31)
HSLhsl(85, 64%, 34%)
HSVhsv(85, 78%, 56%)
CMYKcmyk(33.1%, 0%, 78.2%, 44.3%)
CIE-LABlab(53.90, -33.26, 50.12)
CIE-LCHlch(53.90, 60.15, 123.57°)
OKLaboklab(59.14% -0.0946 0.1112)
OKLCHoklch(59.14% 0.146 130.4)
XYZxyz(14.6396, 21.8773, 4.7475)
Luminance0.2188 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8E1F #4E1F8E
analogous
#8E861F #5F8E1F #288E1F
triadic
#5F8E1F #1F5F8E #8E1F5F
tetradic
#5F8E1F #1F8E86 #4E1F8E #8E1F28
square
#5F8E1F #1F8E86 #4E1F8E #8E1F28
split-complementary
#5F8E1F #1F288E #861F8E
monochromatic
#1C2A09 #3D5C14 #5F8E1F #81C02A #9ED94F

Accessibility & contrast

On white

3.91
#5F8E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#5F8E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8E1F
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8E1F#FFFFFF#000000##000000
##5F8E1F1.003.915.385.38
#FFFFFF3.911.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#958303
Deuteranopia (green-blind)
#8E802A
Tritanopia (blue-blind)
#618879
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5f8e1f;
/* rgb */ color: rgb(95, 142, 31);
/* oklch */ color: oklch(59.1% 0.146 130.4);
Tailwind
colors: {
  custom: {
    50: '#91af64',
    500: '#5f8e1f',
    950: '#000000',
  },
}
SCSS
$custom: #5f8e1f;
$custom-light: #91af64;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8e1f",
  "rgb": {
    "r": 95,
    "g": 142,
    "b": 31
  },
  "hsl": {
    "h": 85.405,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.59136,
    "c": 0.14604,
    "h": 130.4
  },
  "luminance": 0.21878
}

Semantic roles & 50–950 ramp

primary
#5F8E1F
secondary
#7C4DBB
accent
#41E787
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F8E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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