#5F821A#5F821A

#5F821A is a mid, vivid yellow-green. Relative luminance 0.185; OKLCH L 56.0% C 0.133 H 127.1°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#5F821A
RGBrgb(95, 130, 26)
HSLhsl(80, 67%, 31%)
HSVhsv(80, 80%, 51%)
CMYKcmyk(26.9%, 0%, 80%, 49%)
CIE-LABlab(50.06, -27.88, 48.18)
CIE-LCHlch(50.06, 55.67, 120.06°)
OKLaboklab(56.01% -0.0804 0.1063)
OKLCHoklch(56.01% 0.133 127.1)
XYZxyz(12.8884, 18.4725, 3.8636)
Luminance0.1847 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F821A #3D1A82
analogous
#82711A #5F821A #2B821A
triadic
#5F821A #1A5F82 #821A5F
tetradic
#5F821A #1A8271 #3D1A82 #821A2B
square
#5F821A #1A8271 #3D1A82 #821A2B
split-complementary
#5F821A #1A2B82 #711A82
monochromatic
#141C06 #3A4F10 #5F821A #84B524 #A4D83E

Accessibility & contrast

On white

4.47
#5F821A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#5F821A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F821A
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F821A#FFFFFF#000000##000000
##5F821A1.004.474.694.69
#FFFFFF4.471.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#897900
Deuteranopia (green-blind)
#847625
Tritanopia (blue-blind)
#637C6F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5f821a;
/* rgb */ color: rgb(95, 130, 26);
/* oklch */ color: oklch(56.0% 0.133 127.1);
Tailwind
colors: {
  custom: {
    50: '#90a660',
    500: '#5f821a',
    950: '#000000',
  },
}
SCSS
$custom: #5f821a;
$custom-light: #90a660;
$custom-dark: #000000;
JSON
{
  "hex": "#5f821a",
  "rgb": {
    "r": 95,
    "g": 130,
    "b": 26
  },
  "hsl": {
    "h": 80.192,
    "s": 66.667,
    "l": 30.588
  },
  "oklch": {
    "l": 0.56009,
    "c": 0.13331,
    "h": 127.1
  },
  "luminance": 0.18473
}

Semantic roles & 50–950 ramp

primary
#5F821A
secondary
#6942B6
accent
#3EEA78
background
#F9FAF5
surface
#F1F4EA
border
#CBCEC6
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5F821A

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

Preview Lab → · Contrast checker → · Palette generator →

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