#5F8D1D#5F8D1D

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

Color values

HEX#5F8D1D
RGBrgb(95, 141, 29)
HSLhsl(85, 66%, 33%)
HSVhsv(85, 79%, 55%)
CMYKcmyk(32.6%, 0%, 79.4%, 44.7%)
CIE-LABlab(53.57, -32.91, 50.47)
CIE-LCHlch(53.57, 60.25, 123.10°)
OKLaboklab(58.87% -0.0938 0.1116)
OKLCHoklch(58.87% 0.146 130)
XYZxyz(14.4659, 21.5709, 4.5636)
Luminance0.2157 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8D1D #4B1D8D
analogous
#8D831D #5F8D1D #278D1D
triadic
#5F8D1D #1D5F8D #8D1D5F
tetradic
#5F8D1D #1D8D83 #4B1D8D #8D1D27
square
#5F8D1D #1D8D83 #4B1D8D #8D1D27
split-complementary
#5F8D1D #1D278D #831D8D
monochromatic
#1B2708 #3D5A13 #5F8D1D #81C027 #9FDA4B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F8D1D#FFFFFF#000000##000000
##5F8D1D1.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)
#8E7F29
Tritanopia (blue-blind)
#628778
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5f8d1d;
/* rgb */ color: rgb(95, 141, 29);
/* oklch */ color: oklch(58.9% 0.146 130.0);
Tailwind
colors: {
  custom: {
    50: '#91ae63',
    500: '#5f8d1d',
    950: '#000000',
  },
}
SCSS
$custom: #5f8d1d;
$custom-light: #91ae63;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8d1d",
  "rgb": {
    "r": 95,
    "g": 141,
    "b": 29
  },
  "hsl": {
    "h": 84.643,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.58865,
    "c": 0.14584,
    "h": 130
  },
  "luminance": 0.21571
}

Semantic roles & 50–950 ramp

primary
#5F8D1D
secondary
#794ABC
accent
#3FE985
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F8D1D

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

Preview Lab → · Contrast checker → · Palette generator →

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