#5F7D2F#5F7D2F

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

Color values

HEX#5F7D2F
RGBrgb(95, 125, 47)
HSLhsl(83, 45%, 34%)
HSVhsv(83, 62%, 49%)
CMYKcmyk(24%, 0%, 62.4%, 51%)
CIE-LABlab(48.64, -23.91, 38.12)
CIE-LCHlch(48.64, 45.00, 122.10°)
OKLaboklab(54.91% -0.0677 0.0883)
OKLCHoklch(54.91% 0.111 127.4)
XYZxyz(12.5660, 17.3051, 5.3670)
Luminance0.1731 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7D2F #4D2F7D
analogous
#7D742F #5F7D2F #387D2F
triadic
#5F7D2F #2F5F7D #7D2F5F
tetradic
#5F7D2F #2F7D74 #4D2F7D #7D2F38
square
#5F7D2F #2F7D74 #4D2F7D #7D2F38
split-complementary
#5F7D2F #2F387D #742F7D
monochromatic
#1B240E #3D511E #5F7D2F #81A940 #9EC462

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F7D2F#FFFFFF#000000##FFFFFF
##5F7D2F1.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)
#837526
Deuteranopia (green-blind)
#7F7335
Tritanopia (blue-blind)
#62776C
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #5f7d2f;
/* rgb */ color: rgb(95, 125, 47);
/* oklch */ color: oklch(54.9% 0.111 127.4);
Tailwind
colors: {
  custom: {
    50: '#8fa26b',
    500: '#5f7d2f',
    950: '#000000',
  },
}
SCSS
$custom: #5f7d2f;
$custom-light: #8fa26b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7d2f",
  "rgb": {
    "r": 95,
    "g": 125,
    "b": 47
  },
  "hsl": {
    "h": 83.077,
    "s": 45.349,
    "l": 33.725
  },
  "oklch": {
    "l": 0.54908,
    "c": 0.11127,
    "h": 127.4
  },
  "luminance": 0.17305
}

Semantic roles & 50–950 ramp

primary
#5F7D2F
secondary
#7B5DAB
accent
#53D585
background
#F8FAF6
surface
#F0F3EB
border
#CBCDC6
text
#0D0F07
muted
#7D7F7A

Preview Lab

Preview with #5F7D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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