#5F8A2B#5F8A2B

#5F8A2B is a mid, vivid yellow-green. Relative luminance 0.208; OKLCH L 58.2% C 0.133 H 130.6°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#5F8A2B
RGBrgb(95, 138, 43)
HSLhsl(87, 52%, 35%)
HSVhsv(87, 69%, 54%)
CMYKcmyk(31.2%, 0%, 68.8%, 45.9%)
CIE-LABlab(52.71, -30.59, 44.33)
CIE-LCHlch(52.71, 53.86, 124.61°)
OKLaboklab(58.2% -0.0864 0.1009)
OKLCHoklch(58.2% 0.133 130.6)
XYZxyz(14.2437, 20.7838, 5.5462)
Luminance0.2078 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8A2B #562B8A
analogous
#8A852B #5F8A2B #2F8A2B
triadic
#5F8A2B #2B5F8A #8A2B5F
tetradic
#5F8A2B #2B8A85 #562B8A #8A2B2F
square
#5F8A2B #2B8A85 #562B8A #8A2B2F
split-complementary
#5F8A2B #2B2F8A #852B8A
monochromatic
#1F2D0E #3F5B1C #5F8A2B #7FB93A #9DCE61

Accessibility & contrast

On white

4.07
#5F8A2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#5F8A2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8A2B
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8A2B#FFFFFF#000000##000000
##5F8A2B1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#90801E
Deuteranopia (green-blind)
#8A7D33
Tritanopia (blue-blind)
#618477
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f8a2b;
/* rgb */ color: rgb(95, 138, 43);
/* oklch */ color: oklch(58.2% 0.133 130.6);
Tailwind
colors: {
  custom: {
    50: '#90ac6a',
    500: '#5f8a2b',
    950: '#000000',
  },
}
SCSS
$custom: #5f8a2b;
$custom-light: #90ac6a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8a2b",
  "rgb": {
    "r": 95,
    "g": 138,
    "b": 43
  },
  "hsl": {
    "h": 87.158,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.58198,
    "c": 0.13286,
    "h": 130.6
  },
  "luminance": 0.20784
}

Semantic roles & 50–950 ramp

primary
#5F8A2B
secondary
#845DB4
accent
#4CDC8D
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1007
muted
#7E7F7A

Preview Lab

Preview with #5F8A2B

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

Preview Lab → · Contrast checker → · Palette generator →

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