#5F8B1A#5F8B1A

#5F8B1A is a mid, vivid yellow-green. Relative luminance 0.210; OKLCH L 58.3% C 0.145 H 129.4°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#5F8B1A
RGBrgb(95, 139, 26)
HSLhsl(83, 68%, 32%)
HSVhsv(83, 81%, 55%)
CMYKcmyk(31.7%, 0%, 81.3%, 45.5%)
CIE-LABlab(52.92, -32.14, 50.82)
CIE-LCHlch(52.92, 60.13, 122.31°)
OKLaboklab(58.33% -0.092 0.1119)
OKLCHoklch(58.33% 0.145 129.4)
XYZxyz(14.1384, 20.9723, 4.2802)
Luminance0.2097 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8B1A #461A8B
analogous
#8B7F1A #5F8B1A #268B1A
triadic
#5F8B1A #1A5F8B #8B1A5F
tetradic
#5F8B1A #1A8B7F #461A8B #8B1A26
square
#5F8B1A #1A8B7F #461A8B #8B1A26
split-complementary
#5F8B1A #1A268B #7F1A8B
monochromatic
#192407 #3C5710 #5F8B1A #82BF24 #A1DC43

Accessibility & contrast

On white

4.04
#5F8B1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#5F8B1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8B1A
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8B1A#FFFFFF#000000##000000
##5F8B1A1.004.045.195.19
#FFFFFF4.041.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#8C7D26
Tritanopia (blue-blind)
#628576
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f8b1a;
/* rgb */ color: rgb(95, 139, 26);
/* oklch */ color: oklch(58.3% 0.145 129.4);
Tailwind
colors: {
  custom: {
    50: '#91ad61',
    500: '#5f8b1a',
    950: '#000000',
  },
}
SCSS
$custom: #5f8b1a;
$custom-light: #91ad61;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8b1a",
  "rgb": {
    "r": 95,
    "g": 139,
    "b": 26
  },
  "hsl": {
    "h": 83.363,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.58331,
    "c": 0.14483,
    "h": 129.4
  },
  "luminance": 0.20973
}

Semantic roles & 50–950 ramp

primary
#5F8B1A
secondary
#7344BD
accent
#3CEB81
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1005
muted
#7E7F7A

Preview Lab

Preview with #5F8B1A

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

Preview Lab → · Contrast checker → · Palette generator →

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