#5B812E#5B812E

#5B812E is a mid, vivid yellow-green. Relative luminance 0.181; OKLCH L 55.6% C 0.120 H 130.3°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#5B812E
RGBrgb(91, 129, 46)
HSLhsl(87, 47%, 34%)
HSVhsv(87, 64%, 51%)
CMYKcmyk(29.5%, 0%, 64.3%, 49.4%)
CIE-LABlab(49.64, -27.61, 39.63)
CIE-LCHlch(49.64, 48.30, 124.87°)
OKLaboklab(55.65% -0.0777 0.0915)
OKLCHoklch(55.65% 0.12 130.3)
XYZxyz(12.6577, 18.1216, 5.4152)
Luminance0.1812 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B812E #542E81
analogous
#817E2E #5B812E #31812E
triadic
#5B812E #2E5B81 #812E5B
tetradic
#5B812E #2E817E #542E81 #812E31
square
#5B812E #2E817E #542E81 #812E31
split-complementary
#5B812E #2E3181 #7E2E81
monochromatic
#1B270E #3B541E #5B812E #7BAE3E #99C762

Accessibility & contrast

On white

4.54
#5B812E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#5B812E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B812E
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B812E#FFFFFF#000000##000000
##5B812E1.004.544.624.62
#FFFFFF4.541.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#877824
Deuteranopia (green-blind)
#817534
Tritanopia (blue-blind)
#5D7C70
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5b812e;
/* rgb */ color: rgb(91, 129, 46);
/* oklch */ color: oklch(55.6% 0.120 130.3);
Tailwind
colors: {
  custom: {
    50: '#8ca66b',
    500: '#5b812e',
    950: '#000000',
  },
}
SCSS
$custom: #5b812e;
$custom-light: #8ca66b;
$custom-dark: #000000;
JSON
{
  "hex": "#5b812e",
  "rgb": {
    "r": 91,
    "g": 129,
    "b": 46
  },
  "hsl": {
    "h": 87.47,
    "s": 47.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.55649,
    "c": 0.12002,
    "h": 130.3
  },
  "luminance": 0.18122
}

Semantic roles & 50–950 ramp

primary
#5B812E
secondary
#825DAE
accent
#51D78E
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F07
muted
#7D7F7A

Preview Lab

Preview with #5B812E

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

Preview Lab → · Contrast checker → · Palette generator →

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