#5F7D1F#5F7D1F

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

Color values

HEX#5F7D1F
RGBrgb(95, 125, 31)
HSLhsl(79, 60%, 31%)
HSVhsv(79, 75%, 49%)
CMYKcmyk(24%, 0%, 75.2%, 51%)
CIE-LABlab(48.51, -25.15, 44.92)
CIE-LCHlch(48.51, 51.48, 119.25°)
OKLaboklab(54.76% -0.0726 0.1003)
OKLCHoklch(54.76% 0.124 125.9)
XYZxyz(12.3003, 17.1989, 3.9677)
Luminance0.1720 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7D1F #3D1F7D
analogous
#7D6C1F #5F7D1F #307D1F
triadic
#5F7D1F #1F5F7D #7D1F5F
tetradic
#5F7D1F #1F7D6C #3D1F7D #7D1F30
square
#5F7D1F #1F7D6C #3D1F7D #7D1F30
split-complementary
#5F7D1F #1F307D #6C1F7D
monochromatic
#141B07 #3A4C13 #5F7D1F #84AE2B #A4D145

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F7D1F#FFFFFF#000000##FFFFFF
##5F7D1F1.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)
#84740D
Deuteranopia (green-blind)
#807327
Tritanopia (blue-blind)
#63776B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5f7d1f;
/* rgb */ color: rgb(95, 125, 31);
/* oklch */ color: oklch(54.8% 0.124 125.9);
Tailwind
colors: {
  custom: {
    50: '#8fa262',
    500: '#5f7d1f',
    950: '#000000',
  },
}
SCSS
$custom: #5f7d1f;
$custom-light: #8fa262;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7d1f",
  "rgb": {
    "r": 95,
    "g": 125,
    "b": 31
  },
  "hsl": {
    "h": 79.149,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.54758,
    "c": 0.1238,
    "h": 125.9
  },
  "luminance": 0.17199
}

Semantic roles & 50–950 ramp

primary
#5F7D1F
secondary
#6948B0
accent
#44E377
background
#F9FAF6
surface
#F1F3EB
border
#CBCDC6
text
#0D0F05
muted
#7E7F7A

Preview Lab

Preview with #5F7D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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