#5F802A#5F802A

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

Color values

HEX#5F802A
RGBrgb(95, 128, 42)
HSLhsl(83, 51%, 33%)
HSVhsv(83, 67%, 50%)
CMYKcmyk(25.8%, 0%, 67.2%, 49.8%)
CIE-LABlab(49.54, -25.85, 41.41)
CIE-LCHlch(49.54, 48.82, 121.97°)
OKLaboklab(55.62% -0.0735 0.0947)
OKLCHoklch(55.62% 0.12 127.8)
XYZxyz(12.8564, 18.0382, 4.9944)
Luminance0.1804 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F802A #4B2A80
analogous
#80762A #5F802A #34802A
triadic
#5F802A #2A5F80 #802A5F
tetradic
#5F802A #2A8076 #4B2A80 #802A34
square
#5F802A #2A8076 #4B2A80 #802A34
split-complementary
#5F802A #2A3480 #762A80
monochromatic
#1B240C #3D521B #5F802A #81AE39 #9FC95B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F802A#FFFFFF#000000##000000
##5F802A1.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)
#86771F
Deuteranopia (green-blind)
#827531
Tritanopia (blue-blind)
#627A6E
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5f802a;
/* rgb */ color: rgb(95, 128, 42);
/* oklch */ color: oklch(55.6% 0.120 127.8);
Tailwind
colors: {
  custom: {
    50: '#8fa568',
    500: '#5f802a',
    950: '#000000',
  },
}
SCSS
$custom: #5f802a;
$custom-light: #8fa568;
$custom-dark: #000000;
JSON
{
  "hex": "#5f802a",
  "rgb": {
    "r": 95,
    "g": 128,
    "b": 42
  },
  "hsl": {
    "h": 83.023,
    "s": 50.588,
    "l": 33.333
  },
  "oklch": {
    "l": 0.55621,
    "c": 0.11982,
    "h": 127.8
  },
  "luminance": 0.18038
}

Semantic roles & 50–950 ramp

primary
#5F802A
secondary
#7957AF
accent
#4EDA84
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D0F06
muted
#7E7F7A

Preview Lab

Preview with #5F802A

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

Preview Lab → · Contrast checker → · Palette generator →

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