#5F7E1E#5F7E1E

#5F7E1E is a mid, vivid yellow-green. Relative luminance 0.174; OKLCH L 55.0% C 0.126 H 126.1°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#5F7E1E
RGBrgb(95, 126, 30)
HSLhsl(79, 62%, 31%)
HSVhsv(79, 76%, 49%)
CMYKcmyk(24.6%, 0%, 76.2%, 50.6%)
CIE-LABlab(48.82, -25.71, 45.60)
CIE-LCHlch(48.82, 52.34, 119.41°)
OKLaboklab(55.01% -0.0742 0.1016)
OKLCHoklch(55.01% 0.126 126.1)
XYZxyz(12.4146, 17.4481, 3.9418)
Luminance0.1745 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7E1E #3D1E7E
analogous
#7E6D1E #5F7E1E #2F7E1E
triadic
#5F7E1E #1E5F7E #7E1E5F
tetradic
#5F7E1E #1E7E6D #3D1E7E #7E1E2F
square
#5F7E1E #1E7E6D #3D1E7E #7E1E2F
split-complementary
#5F7E1E #1E2F7E #6D1E7E
monochromatic
#141B06 #3A4D12 #5F7E1E #84AF2A #A4D244

Accessibility & contrast

On white

4.68
#5F7E1E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#5F7E1E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7E1E
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7E1E#FFFFFF#000000##FFFFFF
##5F7E1E1.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#85750A
Deuteranopia (green-blind)
#817327
Tritanopia (blue-blind)
#63786C
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #5f7e1e;
/* rgb */ color: rgb(95, 126, 30);
/* oklch */ color: oklch(55.0% 0.126 126.1);
Tailwind
colors: {
  custom: {
    50: '#90a361',
    500: '#5f7e1e',
    950: '#000000',
  },
}
SCSS
$custom: #5f7e1e;
$custom-light: #90a361;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7e1e",
  "rgb": {
    "r": 95,
    "g": 126,
    "b": 30
  },
  "hsl": {
    "h": 79.375,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.55007,
    "c": 0.12577,
    "h": 126.1
  },
  "luminance": 0.17448
}

Semantic roles & 50–950 ramp

primary
#5F7E1E
secondary
#6947B1
accent
#43E577
background
#F9FAF6
surface
#F1F3EB
border
#CBCDC6
text
#0D0F05
muted
#7E7F7A

Preview Lab

Preview with #5F7E1E

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

Preview Lab → · Contrast checker → · Palette generator →

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