#5F802B#5F802B

#5F802B is a mid, moderate yellow-green. Relative luminance 0.180; OKLCH L 55.6% C 0.119 H 127.9°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#5F802B
RGBrgb(95, 128, 43)
HSLhsl(83, 50%, 34%)
HSVhsv(83, 66%, 50%)
CMYKcmyk(25.8%, 0%, 66.4%, 49.8%)
CIE-LABlab(49.55, -25.76, 40.97)
CIE-LCHlch(49.55, 48.40, 122.16°)
OKLaboklab(55.63% -0.0732 0.0939)
OKLCHoklch(55.63% 0.119 127.9)
XYZxyz(12.8745, 18.0454, 5.0898)
Luminance0.1805 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F802B #4C2B80
analogous
#80762B #5F802B #34802B
triadic
#5F802B #2B5F80 #802B5F
tetradic
#5F802B #2B8076 #4C2B80 #802B34
square
#5F802B #2B8076 #4C2B80 #802B34
split-complementary
#5F802B #2B3480 #762B80
monochromatic
#1B240C #3D521C #5F802B #81AE3A #9FC95D

Accessibility & contrast

On white

4.56
#5F802B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#5F802B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F802B
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F802B#FFFFFF#000000##000000
##5F802B1.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#867720
Deuteranopia (green-blind)
#827532
Tritanopia (blue-blind)
#627A6E
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5f802b;
/* rgb */ color: rgb(95, 128, 43);
/* oklch */ color: oklch(55.6% 0.119 127.9);
Tailwind
colors: {
  custom: {
    50: '#8fa569',
    500: '#5f802b',
    950: '#000000',
  },
}
SCSS
$custom: #5f802b;
$custom-light: #8fa569;
$custom-dark: #000000;
JSON
{
  "hex": "#5f802b",
  "rgb": {
    "r": 95,
    "g": 128,
    "b": 43
  },
  "hsl": {
    "h": 83.294,
    "s": 49.708,
    "l": 33.529
  },
  "oklch": {
    "l": 0.55631,
    "c": 0.11901,
    "h": 127.9
  },
  "luminance": 0.18046
}

Semantic roles & 50–950 ramp

primary
#5F802B
secondary
#7A58AE
accent
#4FD984
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D0F06
muted
#7E7F7A

Preview Lab

Preview with #5F802B

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

Preview Lab → · Contrast checker → · Palette generator →

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