#5F8A1D#5F8A1D

#5F8A1D is a mid, vivid yellow-green. Relative luminance 0.207; OKLCH L 58.1% C 0.142 H 129.4°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#5F8A1D
RGBrgb(95, 138, 29)
HSLhsl(84, 65%, 33%)
HSVhsv(84, 79%, 54%)
CMYKcmyk(31.2%, 0%, 79%, 45.9%)
CIE-LABlab(52.62, -31.52, 49.58)
CIE-LCHlch(52.62, 58.75, 122.45°)
OKLaboklab(58.09% -0.0901 0.1098)
OKLCHoklch(58.09% 0.142 129.4)
XYZxyz(14.0295, 20.6982, 4.4181)
Luminance0.2070 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8A1D #481D8A
analogous
#8A7E1D #5F8A1D #288A1D
triadic
#5F8A1D #1D5F8A #8A1D5F
tetradic
#5F8A1D #1D8A7E #481D8A #8A1D28
square
#5F8A1D #1D8A7E #481D8A #8A1D28
split-complementary
#5F8A1D #1D288A #7E1D8A
monochromatic
#192508 #3C5712 #5F8A1D #82BD28 #A0D949

Accessibility & contrast

On white

4.09
#5F8A1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#5F8A1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8A1D
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8A1D#FFFFFF#000000##000000
##5F8A1D1.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#918001
Deuteranopia (green-blind)
#8B7D28
Tritanopia (blue-blind)
#628476
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f8a1d;
/* rgb */ color: rgb(95, 138, 29);
/* oklch */ color: oklch(58.1% 0.142 129.4);
Tailwind
colors: {
  custom: {
    50: '#90ac62',
    500: '#5f8a1d',
    950: '#000000',
  },
}
SCSS
$custom: #5f8a1d;
$custom-light: #90ac62;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8a1d",
  "rgb": {
    "r": 95,
    "g": 138,
    "b": 29
  },
  "hsl": {
    "h": 83.67,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.58091,
    "c": 0.14199,
    "h": 129.4
  },
  "luminance": 0.20699
}

Semantic roles & 50–950 ramp

primary
#5F8A1D
secondary
#7548BB
accent
#40E882
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F8A1D

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

Preview Lab → · Contrast checker → · Palette generator →

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