#5F7E2A#5F7E2A

#5F7E2A is a mid, moderate yellow-green. Relative luminance 0.175; OKLCH L 55.1% C 0.117 H 127.2°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#5F7E2A
RGBrgb(95, 126, 42)
HSLhsl(82, 50%, 33%)
HSVhsv(82, 67%, 49%)
CMYKcmyk(24.6%, 0%, 66.7%, 50.6%)
CIE-LABlab(48.91, -24.85, 40.74)
CIE-LCHlch(48.91, 47.72, 121.39°)
OKLaboklab(55.11% -0.0707 0.0932)
OKLCHoklch(55.11% 0.117 127.2)
XYZxyz(12.5981, 17.5216, 4.9083)
Luminance0.1752 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7E2A #492A7E
analogous
#7E732A #5F7E2A #357E2A
triadic
#5F7E2A #2A5F7E #7E2A5F
tetradic
#5F7E2A #2A7E73 #492A7E #7E2A35
square
#5F7E2A #2A7E73 #492A7E #7E2A35
split-complementary
#5F7E2A #2A357E #732A7E
monochromatic
#1A220B #3C501B #5F7E2A #82AC39 #A0C85A

Accessibility & contrast

On white

4.66
#5F7E2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#5F7E2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7E2A
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7E2A#FFFFFF#000000##FFFFFF
##5F7E2A1.004.664.504.66
#FFFFFF4.661.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#84751F
Deuteranopia (green-blind)
#807430
Tritanopia (blue-blind)
#63786D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #5f7e2a;
/* rgb */ color: rgb(95, 126, 42);
/* oklch */ color: oklch(55.1% 0.117 127.2);
Tailwind
colors: {
  custom: {
    50: '#8fa368',
    500: '#5f7e2a',
    950: '#000000',
  },
}
SCSS
$custom: #5f7e2a;
$custom-light: #8fa368;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7e2a",
  "rgb": {
    "r": 95,
    "g": 126,
    "b": 42
  },
  "hsl": {
    "h": 82.143,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.5511,
    "c": 0.11702,
    "h": 127.2
  },
  "luminance": 0.17522
}

Semantic roles & 50–950 ramp

primary
#5F7E2A
secondary
#7656AE
accent
#4EDA82
background
#F9FAF6
surface
#F1F3EB
border
#CBCDC6
text
#0D0F06
muted
#7E7F7A

Preview Lab

Preview with #5F7E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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