#5F7D2B#5F7D2B

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

Color values

HEX#5F7D2B
RGBrgb(95, 125, 43)
HSLhsl(82, 49%, 33%)
HSVhsv(82, 66%, 49%)
CMYKcmyk(24%, 0%, 65.6%, 51%)
CIE-LABlab(48.60, -24.27, 39.95)
CIE-LCHlch(48.60, 46.75, 121.28°)
OKLaboklab(54.86% -0.069 0.0917)
OKLCHoklch(54.86% 0.115 127)
XYZxyz(12.4890, 17.2743, 4.9613)
Luminance0.1727 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7D2B #492B7D
analogous
#7D722B #5F7D2B #367D2B
triadic
#5F7D2B #2B5F7D #7D2B5F
tetradic
#5F7D2B #2B7D72 #492B7D #7D2B36
square
#5F7D2B #2B7D72 #492B7D #7D2B36
split-complementary
#5F7D2B #2B367D #722B7D
monochromatic
#1A220C #3C4F1B #5F7D2B #82AB3B #A0C75C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F7D2B#FFFFFF#000000##FFFFFF
##5F7D2B1.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)
#837521
Deuteranopia (green-blind)
#7F7331
Tritanopia (blue-blind)
#63776C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5f7d2b;
/* rgb */ color: rgb(95, 125, 43);
/* oklch */ color: oklch(54.9% 0.115 127.0);
Tailwind
colors: {
  custom: {
    50: '#8fa268',
    500: '#5f7d2b',
    950: '#000000',
  },
}
SCSS
$custom: #5f7d2b;
$custom-light: #8fa268;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7d2b",
  "rgb": {
    "r": 95,
    "g": 125,
    "b": 43
  },
  "hsl": {
    "h": 81.951,
    "s": 48.81,
    "l": 32.941
  },
  "oklch": {
    "l": 0.54864,
    "c": 0.11479,
    "h": 127
  },
  "luminance": 0.17275
}

Semantic roles & 50–950 ramp

primary
#5F7D2B
secondary
#7657AD
accent
#4FD882
background
#F8FAF6
surface
#F0F3EB
border
#CBCDC6
text
#0D0F06
muted
#7D7F7A

Preview Lab

Preview with #5F7D2B

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

Preview Lab → · Contrast checker → · Palette generator →

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