#5F7D1D#5F7D1D

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

Color values

HEX#5F7D1D
RGBrgb(95, 125, 29)
HSLhsl(79, 62%, 30%)
HSVhsv(79, 77%, 49%)
CMYKcmyk(24%, 0%, 76.8%, 51%)
CIE-LABlab(48.50, -25.27, 45.65)
CIE-LCHlch(48.50, 52.18, 118.97°)
OKLaboklab(54.74% -0.0731 0.1015)
OKLCHoklch(54.74% 0.125 125.7)
XYZxyz(12.2748, 17.1887, 3.8332)
Luminance0.1719 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7D1D #3B1D7D
analogous
#7D6B1D #5F7D1D #2F7D1D
triadic
#5F7D1D #1D5F7D #7D1D5F
tetradic
#5F7D1D #1D7D6B #3B1D7D #7D1D2F
square
#5F7D1D #1D7D6B #3B1D7D #7D1D2F
split-complementary
#5F7D1D #1D2F7D #6B1D7D
monochromatic
#131A06 #394B11 #5F7D1D #85AF29 #A6D341

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F7D1D#FFFFFF#000000##FFFFFF
##5F7D1D1.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)
#847409
Deuteranopia (green-blind)
#807326
Tritanopia (blue-blind)
#63776B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5f7d1d;
/* rgb */ color: rgb(95, 125, 29);
/* oklch */ color: oklch(54.7% 0.125 125.7);
Tailwind
colors: {
  custom: {
    50: '#90a261',
    500: '#5f7d1d',
    950: '#000000',
  },
}
SCSS
$custom: #5f7d1d;
$custom-light: #90a261;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7d1d",
  "rgb": {
    "r": 95,
    "g": 125,
    "b": 29
  },
  "hsl": {
    "h": 78.75,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.54743,
    "c": 0.12507,
    "h": 125.7
  },
  "luminance": 0.17189
}

Semantic roles & 50–950 ramp

primary
#5F7D1D
secondary
#6745B1
accent
#42E575
background
#F9FAF5
surface
#F1F3EA
border
#CBCDC6
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5F7D1D

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

Preview Lab → · Contrast checker → · Palette generator →

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