#5F7948#5F7948

#5F7948 is a mid, moderate yellow-green. Relative luminance 0.166; OKLCH L 54.3% C 0.078 H 131.3°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#5F7948
RGBrgb(95, 121, 72)
HSLhsl(92, 25%, 38%)
HSVhsv(92, 40%, 47%)
CMYKcmyk(21.5%, 0%, 40.5%, 52.5%)
CIE-LABlab(47.72, -18.86, 23.86)
CIE-LCHlch(47.72, 30.41, 128.33°)
OKLaboklab(54.27% -0.0517 0.0588)
OKLCHoklch(54.27% 0.078 131.3)
XYZxyz(12.7262, 16.5753, 8.6585)
Luminance0.1658 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7948 #624879
analogous
#777948 #5F7948 #487949
triadic
#5F7948 #485F79 #79485F
tetradic
#5F7948 #487779 #624879 #794948
square
#5F7948 #487779 #624879 #794948
split-complementary
#5F7948 #494879 #794877
monochromatic
#232C1A #415331 #5F7948 #7D9F5F #9CB685

Accessibility & contrast

On white

4.87
#5F7948 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#5F7948 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7948
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7948#FFFFFF#000000##FFFFFF
##5F79481.004.874.324.87
#FFFFFF4.871.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D7344
Deuteranopia (green-blind)
#79714B
Tritanopia (blue-blind)
#60756D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5f7948;
/* rgb */ color: rgb(95, 121, 72);
/* oklch */ color: oklch(54.3% 0.078 131.3);
Tailwind
colors: {
  custom: {
    50: '#8d9f7b',
    500: '#5f7948',
    950: '#000000',
  },
}
SCSS
$custom: #5f7948;
$custom-light: #8d9f7b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7948",
  "rgb": {
    "r": 95,
    "g": 121,
    "b": 72
  },
  "hsl": {
    "h": 91.837,
    "s": 25.389,
    "l": 37.843
  },
  "oklch": {
    "l": 0.54271,
    "c": 0.07825,
    "h": 131.3
  },
  "luminance": 0.16576
}

Semantic roles & 50–950 ramp

primary
#5F7948
secondary
#907AA2
accent
#66C297
background
#F8F9F7
surface
#F0F2EE
border
#CBCCC9
text
#0C0E09
muted
#7D7E7B

Preview Lab

Preview with #5F7948

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

Preview Lab → · Contrast checker → · Palette generator →

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