#5F831A#5F831A

#5F831A is a mid, vivid yellow-green. Relative luminance 0.187; OKLCH L 56.3% C 0.135 H 127.4°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#5F831A
RGBrgb(95, 131, 26)
HSLhsl(81, 67%, 31%)
HSVhsv(81, 80%, 51%)
CMYKcmyk(27.5%, 0%, 80.2%, 48.6%)
CIE-LABlab(50.38, -28.37, 48.48)
CIE-LCHlch(50.38, 56.17, 120.33°)
OKLaboklab(56.27% -0.0817 0.1069)
OKLCHoklch(56.27% 0.135 127.4)
XYZxyz(13.0221, 18.7398, 3.9081)
Luminance0.1874 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F831A #3E1A83
analogous
#83721A #5F831A #2B831A
triadic
#5F831A #1A5F83 #831A5F
tetradic
#5F831A #1A8372 #3E1A83 #831A2B
square
#5F831A #1A8372 #3E1A83 #831A2B
split-complementary
#5F831A #1A2B83 #721A83
monochromatic
#151D06 #3A5010 #5F831A #84B624 #A4D93F

Accessibility & contrast

On white

4.42
#5F831A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#5F831A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F831A
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F831A#FFFFFF#000000##000000
##5F831A1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7900
Deuteranopia (green-blind)
#857725
Tritanopia (blue-blind)
#637D70
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5f831a;
/* rgb */ color: rgb(95, 131, 26);
/* oklch */ color: oklch(56.3% 0.135 127.4);
Tailwind
colors: {
  custom: {
    50: '#90a760',
    500: '#5f831a',
    950: '#000000',
  },
}
SCSS
$custom: #5f831a;
$custom-light: #90a760;
$custom-dark: #000000;
JSON
{
  "hex": "#5f831a",
  "rgb": {
    "r": 95,
    "g": 131,
    "b": 26
  },
  "hsl": {
    "h": 80.571,
    "s": 66.879,
    "l": 30.784
  },
  "oklch": {
    "l": 0.56267,
    "c": 0.1346,
    "h": 127.4
  },
  "luminance": 0.1874
}

Semantic roles & 50–950 ramp

primary
#5F831A
secondary
#6A42B7
accent
#3EEA79
background
#F9FAF5
surface
#F1F4EA
border
#CBCEC6
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5F831A

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

Preview Lab → · Contrast checker → · Palette generator →

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