#5F8E1B#5F8E1B

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

Color values

HEX#5F8E1B
RGBrgb(95, 142, 27)
HSLhsl(85, 68%, 33%)
HSVhsv(85, 81%, 56%)
CMYKcmyk(33.1%, 0%, 81%, 44.3%)
CIE-LABlab(53.88, -33.47, 51.39)
CIE-LCHlch(53.88, 61.33, 123.07°)
OKLaboklab(59.11% -0.0955 0.1133)
OKLCHoklch(59.11% 0.148 130.1)
XYZxyz(14.5901, 21.8575, 4.4869)
Luminance0.2186 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8E1B #4A1B8E
analogous
#8E831B #5F8E1B #258E1B
triadic
#5F8E1B #1B5F8E #8E1B5F
tetradic
#5F8E1B #1B8E83 #4A1B8E #8E1B25
square
#5F8E1B #1B8E83 #4A1B8E #8E1B25
split-complementary
#5F8E1B #1B258E #831B8E
monochromatic
#1A2707 #3D5B11 #5F8E1B #81C125 #9FDC47

Accessibility & contrast

On white

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

On black

5.37
#5F8E1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8E1B
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8E1B#FFFFFF#000000##000000
##5F8E1B1.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#8E8028
Tritanopia (blue-blind)
#628879
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5f8e1b;
/* rgb */ color: rgb(95, 142, 27);
/* oklch */ color: oklch(59.1% 0.148 130.1);
Tailwind
colors: {
  custom: {
    50: '#91af62',
    500: '#5f8e1b',
    950: '#000000',
  },
}
SCSS
$custom: #5f8e1b;
$custom-light: #91af62;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8e1b",
  "rgb": {
    "r": 95,
    "g": 142,
    "b": 27
  },
  "hsl": {
    "h": 84.522,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.59112,
    "c": 0.14813,
    "h": 130.1
  },
  "luminance": 0.21858
}

Semantic roles & 50–950 ramp

primary
#5F8E1B
secondary
#7847BE
accent
#3DEB84
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F8E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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