#5F7E1F#5F7E1F

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

Color values

HEX#5F7E1F
RGBrgb(95, 126, 31)
HSLhsl(80, 61%, 31%)
HSVhsv(80, 75%, 49%)
CMYKcmyk(24.6%, 0%, 75.4%, 50.6%)
CIE-LABlab(48.83, -25.65, 45.23)
CIE-LCHlch(48.83, 51.99, 119.56°)
OKLaboklab(55.01% -0.0739 0.101)
OKLCHoklch(55.01% 0.125 126.2)
XYZxyz(12.4276, 17.4533, 4.0101)
Luminance0.1745 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7E1F #3E1F7E
analogous
#7E6D1F #5F7E1F #2F7E1F
triadic
#5F7E1F #1F5F7E #7E1F5F
tetradic
#5F7E1F #1F7E6D #3E1F7E #7E1F2F
square
#5F7E1F #1F7E6D #3E1F7E #7E1F2F
split-complementary
#5F7E1F #1F2F7E #6D1F7E
monochromatic
#151C07 #3A4D13 #5F7E1F #84AF2B #A4D146

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F7E1F#FFFFFF#000000##FFFFFF
##5F7E1F1.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)
#85750D
Deuteranopia (green-blind)
#817328
Tritanopia (blue-blind)
#63786C
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #5f7e1f;
/* rgb */ color: rgb(95, 126, 31);
/* oklch */ color: oklch(55.0% 0.125 126.2);
Tailwind
colors: {
  custom: {
    50: '#90a362',
    500: '#5f7e1f',
    950: '#000000',
  },
}
SCSS
$custom: #5f7e1f;
$custom-light: #90a362;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7e1f",
  "rgb": {
    "r": 95,
    "g": 126,
    "b": 31
  },
  "hsl": {
    "h": 79.579,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.55014,
    "c": 0.12512,
    "h": 126.2
  },
  "luminance": 0.17454
}

Semantic roles & 50–950 ramp

primary
#5F7E1F
secondary
#6A48B1
accent
#44E478
background
#F9FAF6
surface
#F1F3EB
border
#CBCDC6
text
#0D0F05
muted
#7E7F7A

Preview Lab

Preview with #5F7E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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