#5F7E2F#5F7E2F

#5F7E2F is a mid, moderate yellow-green. Relative luminance 0.176; OKLCH L 55.2% C 0.113 H 127.8°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#5F7E2F
RGBrgb(95, 126, 47)
HSLhsl(84, 46%, 34%)
HSVhsv(84, 63%, 49%)
CMYKcmyk(24.6%, 0%, 62.7%, 50.6%)
CIE-LABlab(48.96, -24.42, 38.47)
CIE-LCHlch(48.96, 45.57, 122.40°)
OKLaboklab(55.16% -0.069 0.0891)
OKLCHoklch(55.16% 0.113 127.8)
XYZxyz(12.6932, 17.5596, 5.4094)
Luminance0.1756 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7E2F #4E2F7E
analogous
#7E762F #5F7E2F #387E2F
triadic
#5F7E2F #2F5F7E #7E2F5F
tetradic
#5F7E2F #2F7E76 #4E2F7E #7E2F38
square
#5F7E2F #2F7E76 #4E2F7E #7E2F38
split-complementary
#5F7E2F #2F387E #762F7E
monochromatic
#1C250E #3D511E #5F7E2F #81AB40 #9EC563

Accessibility & contrast

On white

4.65
#5F7E2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#5F7E2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7E2F
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7E2F#FFFFFF#000000##FFFFFF
##5F7E2F1.004.654.514.65
#FFFFFF4.651.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847626
Deuteranopia (green-blind)
#807435
Tritanopia (blue-blind)
#62786D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #5f7e2f;
/* rgb */ color: rgb(95, 126, 47);
/* oklch */ color: oklch(55.2% 0.113 127.8);
Tailwind
colors: {
  custom: {
    50: '#8fa36b',
    500: '#5f7e2f',
    950: '#000000',
  },
}
SCSS
$custom: #5f7e2f;
$custom-light: #8fa36b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7e2f",
  "rgb": {
    "r": 95,
    "g": 126,
    "b": 47
  },
  "hsl": {
    "h": 83.544,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.55163,
    "c": 0.11272,
    "h": 127.8
  },
  "luminance": 0.1756
}

Semantic roles & 50–950 ramp

primary
#5F7E2F
secondary
#7C5DAC
accent
#52D586
background
#F8FAF6
surface
#F0F3EB
border
#CBCDC6
text
#0D0F07
muted
#7D7F7A

Preview Lab

Preview with #5F7E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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