#5F7D2A#5F7D2A

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

Color values

HEX#5F7D2A
RGBrgb(95, 125, 42)
HSLhsl(82, 50%, 33%)
HSVhsv(82, 66%, 49%)
CMYKcmyk(24%, 0%, 66.4%, 51%)
CIE-LABlab(48.59, -24.35, 40.40)
CIE-LCHlch(48.59, 47.17, 121.08°)
OKLaboklab(54.85% -0.0694 0.0925)
OKLCHoklch(54.85% 0.116 126.9)
XYZxyz(12.4709, 17.2671, 4.8659)
Luminance0.1727 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7D2A #482A7D
analogous
#7D722A #5F7D2A #357D2A
triadic
#5F7D2A #2A5F7D #7D2A5F
tetradic
#5F7D2A #2A7D72 #482A7D #7D2A35
square
#5F7D2A #2A7D72 #482A7D #7D2A35
split-complementary
#5F7D2A #2A357D #722A7D
monochromatic
#19210B #3C4F1B #5F7D2A #82AB39 #A0C85A

Accessibility & contrast

On white

4.72
#5F7D2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#5F7D2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7D2A
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7D2A#FFFFFF#000000##FFFFFF
##5F7D2A1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#83751F
Deuteranopia (green-blind)
#7F7330
Tritanopia (blue-blind)
#63776C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5f7d2a;
/* rgb */ color: rgb(95, 125, 42);
/* oklch */ color: oklch(54.9% 0.116 126.9);
Tailwind
colors: {
  custom: {
    50: '#8fa268',
    500: '#5f7d2a',
    950: '#000000',
  },
}
SCSS
$custom: #5f7d2a;
$custom-light: #8fa268;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7d2a",
  "rgb": {
    "r": 95,
    "g": 125,
    "b": 42
  },
  "hsl": {
    "h": 81.687,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.54854,
    "c": 0.11562,
    "h": 126.9
  },
  "luminance": 0.17267
}

Semantic roles & 50–950 ramp

primary
#5F7D2A
secondary
#7556AD
accent
#4FD981
background
#F9FAF6
surface
#F1F3EB
border
#CBCDC6
text
#0D0F06
muted
#7E7F7A

Preview Lab

Preview with #5F7D2A

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

Preview Lab → · Contrast checker → · Palette generator →

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