#5B8A2F#5B8A2F

#5B8A2F is a mid, vivid yellow-green. Relative luminance 0.206; OKLCH L 58.0% C 0.132 H 132.5°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#5B8A2F
RGBrgb(91, 138, 47)
HSLhsl(91, 49%, 36%)
HSVhsv(91, 66%, 54%)
CMYKcmyk(34.1%, 0%, 65.9%, 45.9%)
CIE-LABlab(52.52, -31.80, 42.31)
CIE-LCHlch(52.52, 52.92, 126.93°)
OKLaboklab(57.99% -0.0891 0.0973)
OKLCHoklch(57.99% 0.132 132.5)
XYZxyz(13.9158, 20.6058, 5.9329)
Luminance0.2061 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8A2F #5E2F8A
analogous
#898A2F #5B8A2F #2F8A31
triadic
#5B8A2F #2F5B8A #8A2F5B
tetradic
#5B8A2F #2F898A #5E2F8A #8A312F
square
#5B8A2F #2F898A #5E2F8A #8A312F
split-complementary
#5B8A2F #312F8A #8A2F89
monochromatic
#1F2F10 #3D5C1F #5B8A2F #79B83F #98CC68

Accessibility & contrast

On white

4.10
#5B8A2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#5B8A2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8A2F
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8A2F#FFFFFF#000000##000000
##5B8A2F1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#908024
Deuteranopia (green-blind)
#897C36
Tritanopia (blue-blind)
#5C8477
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5b8a2f;
/* rgb */ color: rgb(91, 138, 47);
/* oklch */ color: oklch(58.0% 0.132 132.5);
Tailwind
colors: {
  custom: {
    50: '#8dac6c',
    500: '#5b8a2f',
    950: '#000000',
  },
}
SCSS
$custom: #5b8a2f;
$custom-light: #8dac6c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8a2f",
  "rgb": {
    "r": 91,
    "g": 138,
    "b": 47
  },
  "hsl": {
    "h": 90.989,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.57987,
    "c": 0.13191,
    "h": 132.5
  },
  "luminance": 0.20606
}

Semantic roles & 50–950 ramp

primary
#5B8A2F
secondary
#8C62B3
accent
#4FD996
background
#F8FAF6
surface
#F0F4EC
border
#CBCEC7
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #5B8A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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