#5F8D2D#5F8D2D

#5F8D2D is a mid, vivid yellow-green. Relative luminance 0.217; OKLCH L 59.0% C 0.135 H 131.4°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#5F8D2D
RGBrgb(95, 141, 45)
HSLhsl(89, 52%, 36%)
HSVhsv(89, 68%, 55%)
CMYKcmyk(32.6%, 0%, 68.1%, 44.7%)
CIE-LABlab(53.68, -31.84, 44.49)
CIE-LCHlch(53.68, 54.71, 125.58°)
OKLaboklab(58.99% -0.0896 0.1016)
OKLCHoklch(58.99% 0.135 131.4)
XYZxyz(14.7177, 21.6716, 5.8897)
Luminance0.2167 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8D2D #5B2D8D
analogous
#8D8B2D #5F8D2D #2F8D2D
triadic
#5F8D2D #2D5F8D #8D2D5F
tetradic
#5F8D2D #2D8D8B #5B2D8D #8D2D2F
square
#5F8D2D #2D8D8B #5B2D8D #8D2D2F
split-complementary
#5F8D2D #2D2F8D #8B2D8D
monochromatic
#20300F #405F1E #5F8D2D #7EBB3C #9CCE66

Accessibility & contrast

On white

3.94
#5F8D2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#5F8D2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8D2D
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8D2D#FFFFFF#000000##000000
##5F8D2D1.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#938320
Deuteranopia (green-blind)
#8D7F35
Tritanopia (blue-blind)
#618779
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5f8d2d;
/* rgb */ color: rgb(95, 141, 45);
/* oklch */ color: oklch(59.0% 0.135 131.4);
Tailwind
colors: {
  custom: {
    50: '#90ae6b',
    500: '#5f8d2d',
    950: '#000000',
  },
}
SCSS
$custom: #5f8d2d;
$custom-light: #90ae6b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8d2d",
  "rgb": {
    "r": 95,
    "g": 141,
    "b": 45
  },
  "hsl": {
    "h": 88.75,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.58988,
    "c": 0.13545,
    "h": 131.4
  },
  "luminance": 0.21672
}

Semantic roles & 50–950 ramp

primary
#5F8D2D
secondary
#8961B5
accent
#4DDB91
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1007
muted
#7E7F7A

Preview Lab

Preview with #5F8D2D

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

Preview Lab → · Contrast checker → · Palette generator →

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