#5F7D1E#5F7D1E

#5F7D1E is a mid, vivid yellow-green. Relative luminance 0.172; OKLCH L 54.8% C 0.124 H 125.8°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#5F7D1E
RGBrgb(95, 125, 30)
HSLhsl(79, 61%, 30%)
HSVhsv(79, 76%, 49%)
CMYKcmyk(24%, 0%, 76%, 51%)
CIE-LABlab(48.50, -25.21, 45.29)
CIE-LCHlch(48.50, 51.83, 119.10°)
OKLaboklab(54.75% -0.0728 0.1009)
OKLCHoklch(54.75% 0.124 125.8)
XYZxyz(12.2873, 17.1937, 3.8994)
Luminance0.1719 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7D1E #3C1E7D
analogous
#7D6B1E #5F7D1E #307D1E
triadic
#5F7D1E #1E5F7D #7D1E5F
tetradic
#5F7D1E #1E7D6B #3C1E7D #7D1E30
square
#5F7D1E #1E7D6B #3C1E7D #7D1E30
split-complementary
#5F7D1E #1E307D #6B1E7D
monochromatic
#141A06 #394C12 #5F7D1E #85AE2A #A5D243

Accessibility & contrast

On white

4.73
#5F7D1E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#5F7D1E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7D1E
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7D1E#FFFFFF#000000##FFFFFF
##5F7D1E1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#84740B
Deuteranopia (green-blind)
#807327
Tritanopia (blue-blind)
#63776B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5f7d1e;
/* rgb */ color: rgb(95, 125, 30);
/* oklch */ color: oklch(54.8% 0.124 125.8);
Tailwind
colors: {
  custom: {
    50: '#90a261',
    500: '#5f7d1e',
    950: '#000000',
  },
}
SCSS
$custom: #5f7d1e;
$custom-light: #90a261;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7d1e",
  "rgb": {
    "r": 95,
    "g": 125,
    "b": 30
  },
  "hsl": {
    "h": 78.947,
    "s": 61.29,
    "l": 30.392
  },
  "oklch": {
    "l": 0.5475,
    "c": 0.12444,
    "h": 125.8
  },
  "luminance": 0.17194
}

Semantic roles & 50–950 ramp

primary
#5F7D1E
secondary
#6846B0
accent
#43E476
background
#F9FAF6
surface
#F1F3EB
border
#CBCDC6
text
#0D0F05
muted
#7E7F7A

Preview Lab

Preview with #5F7D1E

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

Preview Lab → · Contrast checker → · Palette generator →

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