#5F8B1F#5F8B1F

#5F8B1F is a mid, vivid yellow-green. Relative luminance 0.210; OKLCH L 58.4% C 0.142 H 129.7°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#5F8B1F
RGBrgb(95, 139, 31)
HSLhsl(84, 64%, 33%)
HSVhsv(84, 78%, 55%)
CMYKcmyk(31.7%, 0%, 77.7%, 45.5%)
CIE-LABlab(52.95, -31.88, 49.21)
CIE-LCHlch(52.95, 58.63, 122.93°)
OKLaboklab(58.36% -0.0909 0.1093)
OKLCHoklch(58.36% 0.142 129.7)
XYZxyz(14.1992, 20.9966, 4.6007)
Luminance0.2100 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8B1F #4B1F8B
analogous
#8B811F #5F8B1F #298B1F
triadic
#5F8B1F #1F5F8B #8B1F5F
tetradic
#5F8B1F #1F8B81 #4B1F8B #8B1F29
square
#5F8B1F #1F8B81 #4B1F8B #8B1F29
split-complementary
#5F8B1F #1F298B #811F8B
monochromatic
#1B2709 #3D5914 #5F8B1F #81BD2A #9FD74D

Accessibility & contrast

On white

4.04
#5F8B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#5F8B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8B1F
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8B1F#FFFFFF#000000##000000
##5F8B1F1.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#928005
Deuteranopia (green-blind)
#8C7D2A
Tritanopia (blue-blind)
#628577
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f8b1f;
/* rgb */ color: rgb(95, 139, 31);
/* oklch */ color: oklch(58.4% 0.142 129.7);
Tailwind
colors: {
  custom: {
    50: '#90ad64',
    500: '#5f8b1f',
    950: '#000000',
  },
}
SCSS
$custom: #5f8b1f;
$custom-light: #90ad64;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8b1f",
  "rgb": {
    "r": 95,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 84.444,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.58361,
    "c": 0.14216,
    "h": 129.7
  },
  "luminance": 0.20997
}

Semantic roles & 50–950 ramp

primary
#5F8B1F
secondary
#794CBA
accent
#41E785
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F8B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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