#5F7D2E#5F7D2E

#5F7D2E is a mid, moderate yellow-green. Relative luminance 0.173; OKLCH L 54.9% C 0.112 H 127.3°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#5F7D2E
RGBrgb(95, 125, 46)
HSLhsl(83, 46%, 34%)
HSVhsv(83, 63%, 49%)
CMYKcmyk(24%, 0%, 63.2%, 51%)
CIE-LABlab(48.63, -24.01, 38.59)
CIE-LCHlch(48.63, 45.44, 121.89°)
OKLaboklab(54.9% -0.068 0.0892)
OKLCHoklch(54.9% 0.112 127.3)
XYZxyz(12.5461, 17.2972, 5.2619)
Luminance0.1730 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7D2E #4C2E7D
analogous
#7D732E #5F7D2E #377D2E
triadic
#5F7D2E #2E5F7D #7D2E5F
tetradic
#5F7D2E #2E7D73 #4C2E7D #7D2E37
square
#5F7D2E #2E7D73 #4C2E7D #7D2E37
split-complementary
#5F7D2E #2E377D #732E7D
monochromatic
#1B240D #3D501E #5F7D2E #81AA3E #9FC561

Accessibility & contrast

On white

4.71
#5F7D2E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#5F7D2E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7D2E
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7D2E#FFFFFF#000000##FFFFFF
##5F7D2E1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837525
Deuteranopia (green-blind)
#7F7334
Tritanopia (blue-blind)
#62776C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5f7d2e;
/* rgb */ color: rgb(95, 125, 46);
/* oklch */ color: oklch(54.9% 0.112 127.3);
Tailwind
colors: {
  custom: {
    50: '#8fa26a',
    500: '#5f7d2e',
    950: '#000000',
  },
}
SCSS
$custom: #5f7d2e;
$custom-light: #8fa26a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7d2e",
  "rgb": {
    "r": 95,
    "g": 125,
    "b": 46
  },
  "hsl": {
    "h": 82.785,
    "s": 46.199,
    "l": 33.529
  },
  "oklch": {
    "l": 0.54896,
    "c": 0.11218,
    "h": 127.3
  },
  "luminance": 0.17297
}

Semantic roles & 50–950 ramp

primary
#5F7D2E
secondary
#7A5BAB
accent
#52D684
background
#F8FAF6
surface
#F0F3EB
border
#CBCDC6
text
#0D0F07
muted
#7D7F7A

Preview Lab

Preview with #5F7D2E

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

Preview Lab → · Contrast checker → · Palette generator →

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