#5F8B1D#5F8B1D

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

Color values

HEX#5F8B1D
RGBrgb(95, 139, 29)
HSLhsl(84, 65%, 33%)
HSVhsv(84, 79%, 55%)
CMYKcmyk(31.7%, 0%, 79.1%, 45.5%)
CIE-LABlab(52.93, -31.99, 49.88)
CIE-LCHlch(52.93, 59.25, 122.67°)
OKLaboklab(58.35% -0.0913 0.1104)
OKLCHoklch(58.35% 0.143 129.6)
XYZxyz(14.1737, 20.9864, 4.4662)
Luminance0.2099 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8B1D #491D8B
analogous
#8B801D #5F8B1D #288B1D
triadic
#5F8B1D #1D5F8B #8B1D5F
tetradic
#5F8B1D #1D8B80 #491D8B #8B1D28
square
#5F8B1D #1D8B80 #491D8B #8B1D28
split-complementary
#5F8B1D #1D288B #801D8B
monochromatic
#1A2608 #3C5812 #5F8B1D #82BE28 #A0D949

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F8B1D#FFFFFF#000000##000000
##5F8B1D1.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)
#928000
Deuteranopia (green-blind)
#8C7D28
Tritanopia (blue-blind)
#628576
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f8b1d;
/* rgb */ color: rgb(95, 139, 29);
/* oklch */ color: oklch(58.3% 0.143 129.6);
Tailwind
colors: {
  custom: {
    50: '#90ad63',
    500: '#5f8b1d',
    950: '#000000',
  },
}
SCSS
$custom: #5f8b1d;
$custom-light: #90ad63;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8b1d",
  "rgb": {
    "r": 95,
    "g": 139,
    "b": 29
  },
  "hsl": {
    "h": 84,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.58349,
    "c": 0.14327,
    "h": 129.6
  },
  "luminance": 0.20987
}

Semantic roles & 50–950 ramp

primary
#5F8B1D
secondary
#7649BB
accent
#3FE883
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F8B1D

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

Preview Lab → · Contrast checker → · Palette generator →

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