#5F8D1A#5F8D1A

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

Color values

HEX#5F8D1A
RGBrgb(95, 141, 26)
HSLhsl(84, 69%, 33%)
HSVhsv(84, 82%, 55%)
CMYKcmyk(32.6%, 0%, 81.6%, 44.7%)
CIE-LABlab(53.55, -33.06, 51.40)
CIE-LCHlch(53.55, 61.12, 122.75°)
OKLaboklab(58.85% -0.0945 0.1131)
OKLCHoklch(58.85% 0.147 129.9)
XYZxyz(14.4306, 21.5568, 4.3776)
Luminance0.2156 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8D1A #481A8D
analogous
#8D811A #5F8D1A #268D1A
triadic
#5F8D1A #1A5F8D #8D1A5F
tetradic
#5F8D1A #1A8D81 #481A8D #8D1A26
square
#5F8D1A #1A8D81 #481A8D #8D1A26
split-complementary
#5F8D1A #1A268D #811A8D
monochromatic
#192607 #3C5910 #5F8D1A #82C124 #A0DD45

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F8D1A#FFFFFF#000000##000000
##5F8D1A1.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: #5f8d1a;
/* rgb */ color: rgb(95, 141, 26);
/* oklch */ color: oklch(58.8% 0.147 129.9);
Tailwind
colors: {
  custom: {
    50: '#91ae62',
    500: '#5f8d1a',
    950: '#000000',
  },
}
SCSS
$custom: #5f8d1a;
$custom-light: #91ae62;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8d1a",
  "rgb": {
    "r": 95,
    "g": 141,
    "b": 26
  },
  "hsl": {
    "h": 84,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.58848,
    "c": 0.14736,
    "h": 129.9
  },
  "luminance": 0.21557
}

Semantic roles & 50–950 ramp

primary
#5F8D1A
secondary
#7545BE
accent
#3CEC82
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1005
muted
#7E7F7A

Preview Lab

Preview with #5F8D1A

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

Preview Lab → · Contrast checker → · Palette generator →

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