#5F8A1B#5F8A1B

#5F8A1B is a mid, vivid yellow-green. Relative luminance 0.207; OKLCH L 58.1% C 0.143 H 129.2°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#5F8A1B
RGBrgb(95, 138, 27)
HSLhsl(83, 67%, 32%)
HSVhsv(83, 80%, 54%)
CMYKcmyk(31.2%, 0%, 80.4%, 45.9%)
CIE-LABlab(52.61, -31.63, 50.22)
CIE-LCHlch(52.61, 59.35, 122.20°)
OKLaboklab(58.08% -0.0905 0.1108)
OKLCHoklch(58.08% 0.143 129.2)
XYZxyz(14.0056, 20.6886, 4.2921)
Luminance0.2069 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8A1B #461B8A
analogous
#8A7D1B #5F8A1B #288A1B
triadic
#5F8A1B #1B5F8A #8A1B5F
tetradic
#5F8A1B #1B8A7D #461B8A #8A1B28
square
#5F8A1B #1B8A7D #461B8A #8A1B28
split-complementary
#5F8A1B #1B288A #7D1B8A
monochromatic
#192407 #3C5711 #5F8A1B #82BD25 #A1DB45

Accessibility & contrast

On white

4.09
#5F8A1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#5F8A1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8A1B
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8A1B#FFFFFF#000000##000000
##5F8A1B1.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F00
Deuteranopia (green-blind)
#8B7D27
Tritanopia (blue-blind)
#628476
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f8a1b;
/* rgb */ color: rgb(95, 138, 27);
/* oklch */ color: oklch(58.1% 0.143 129.2);
Tailwind
colors: {
  custom: {
    50: '#91ac62',
    500: '#5f8a1b',
    950: '#000000',
  },
}
SCSS
$custom: #5f8a1b;
$custom-light: #91ac62;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8a1b",
  "rgb": {
    "r": 95,
    "g": 138,
    "b": 27
  },
  "hsl": {
    "h": 83.243,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.58079,
    "c": 0.14305,
    "h": 129.2
  },
  "luminance": 0.20689
}

Semantic roles & 50–950 ramp

primary
#5F8A1B
secondary
#7345BC
accent
#3EEA80
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1005
muted
#7E7F7A

Preview Lab

Preview with #5F8A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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