#5F8D1B#5F8D1B

#5F8D1B is a mid, vivid yellow-green. Relative luminance 0.216; OKLCH L 58.9% C 0.147 H 129.9°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#5F8D1B
RGBrgb(95, 141, 27)
HSLhsl(84, 68%, 33%)
HSVhsv(84, 81%, 55%)
CMYKcmyk(32.6%, 0%, 80.9%, 44.7%)
CIE-LABlab(53.56, -33.01, 51.10)
CIE-LCHlch(53.56, 60.84, 122.86°)
OKLaboklab(58.85% -0.0943 0.1126)
OKLCHoklch(58.85% 0.147 129.9)
XYZxyz(14.4420, 21.5613, 4.4375)
Luminance0.2156 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8D1B #491B8D
analogous
#8D821B #5F8D1B #268D1B
triadic
#5F8D1B #1B5F8D #8D1B5F
tetradic
#5F8D1B #1B8D82 #491B8D #8D1B26
square
#5F8D1B #1B8D82 #491B8D #8D1B26
split-complementary
#5F8D1B #1B268D #821B8D
monochromatic
#1A2607 #3C5A11 #5F8D1B #82C025 #A0DC47

Accessibility & contrast

On white

3.95
#5F8D1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#5F8D1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8D1B
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8D1B#FFFFFF#000000##000000
##5F8D1B1.003.955.315.31
#FFFFFF3.951.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#8E7F27
Tritanopia (blue-blind)
#628778
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5f8d1b;
/* rgb */ color: rgb(95, 141, 27);
/* oklch */ color: oklch(58.9% 0.147 129.9);
Tailwind
colors: {
  custom: {
    50: '#91ae62',
    500: '#5f8d1b',
    950: '#000000',
  },
}
SCSS
$custom: #5f8d1b;
$custom-light: #91ae62;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8d1b",
  "rgb": {
    "r": 95,
    "g": 141,
    "b": 27
  },
  "hsl": {
    "h": 84.211,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.58854,
    "c": 0.14687,
    "h": 129.9
  },
  "luminance": 0.21562
}

Semantic roles & 50–950 ramp

primary
#5F8D1B
secondary
#7646BD
accent
#3DEB83
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F8D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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