#5F7C2E#5F7C2E

#5F7C2E is a mid, moderate yellow-green. Relative luminance 0.170; OKLCH L 54.6% C 0.111 H 127.0°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#5F7C2E
RGBrgb(95, 124, 46)
HSLhsl(82, 46%, 33%)
HSVhsv(82, 63%, 49%)
CMYKcmyk(23.4%, 0%, 62.9%, 51.4%)
CIE-LABlab(48.32, -23.50, 38.24)
CIE-LCHlch(48.32, 44.88, 121.58°)
OKLaboklab(54.64% -0.0666 0.0885)
OKLCHoklch(54.64% 0.111 127)
XYZxyz(12.4201, 17.0453, 5.2200)
Luminance0.1704 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7C2E #4B2E7C
analogous
#7C722E #5F7C2E #387C2E
triadic
#5F7C2E #2E5F7C #7C2E5F
tetradic
#5F7C2E #2E7C72 #4B2E7C #7C2E38
square
#5F7C2E #2E7C72 #4B2E7C #7C2E38
split-complementary
#5F7C2E #2E387C #722E7C
monochromatic
#1B230D #3D4F1D #5F7C2E #81A93F #9FC460

Accessibility & contrast

On white

4.76
#5F7C2E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#5F7C2E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7C2E
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7C2E#FFFFFF#000000##FFFFFF
##5F7C2E1.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827425
Deuteranopia (green-blind)
#7E7234
Tritanopia (blue-blind)
#62766B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5f7c2e;
/* rgb */ color: rgb(95, 124, 46);
/* oklch */ color: oklch(54.6% 0.111 127.0);
Tailwind
colors: {
  custom: {
    50: '#8fa26a',
    500: '#5f7c2e',
    950: '#000000',
  },
}
SCSS
$custom: #5f7c2e;
$custom-light: #8fa26a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7c2e",
  "rgb": {
    "r": 95,
    "g": 124,
    "b": 46
  },
  "hsl": {
    "h": 82.308,
    "s": 45.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.54641,
    "c": 0.11073,
    "h": 127
  },
  "luminance": 0.17045
}

Semantic roles & 50–950 ramp

primary
#5F7C2E
secondary
#795BAB
accent
#52D683
background
#F8F9F6
surface
#F0F2EB
border
#CBCCC6
text
#0D0F07
muted
#7D7E7A

Preview Lab

Preview with #5F7C2E

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

Preview Lab → · Contrast checker → · Palette generator →

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