#5B7E2D#5B7E2D

#5B7E2D is a mid, moderate yellow-green. Relative luminance 0.173; OKLCH L 54.9% C 0.117 H 129.4°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#5B7E2D
RGBrgb(91, 126, 45)
HSLhsl(86, 47%, 34%)
HSVhsv(86, 64%, 49%)
CMYKcmyk(27.8%, 0%, 64.3%, 50.6%)
CIE-LABlab(48.68, -26.24, 39.03)
CIE-LCHlch(48.68, 47.03, 123.91°)
OKLaboklab(54.86% -0.074 0.0901)
OKLCHoklch(54.86% 0.117 129.4)
XYZxyz(12.2488, 17.3350, 5.1828)
Luminance0.1734 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7E2D #502D7E
analogous
#7E782D #5B7E2D #327E2D
triadic
#5B7E2D #2D5B7E #7E2D5B
tetradic
#5B7E2D #2D7E78 #502D7E #7E2D32
square
#5B7E2D #2D7E78 #502D7E #7E2D32
split-complementary
#5B7E2D #2D327E #782D7E
monochromatic
#1A240D #3A511D #5B7E2D #7CAB3D #9AC65F

Accessibility & contrast

On white

4.70
#5B7E2D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#5B7E2D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7E2D
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7E2D#FFFFFF#000000##FFFFFF
##5B7E2D1.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847523
Deuteranopia (green-blind)
#7F7333
Tritanopia (blue-blind)
#5D796D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #5b7e2d;
/* rgb */ color: rgb(91, 126, 45);
/* oklch */ color: oklch(54.9% 0.117 129.4);
Tailwind
colors: {
  custom: {
    50: '#8ca36a',
    500: '#5b7e2d',
    950: '#000000',
  },
}
SCSS
$custom: #5b7e2d;
$custom-light: #8ca36a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7e2d",
  "rgb": {
    "r": 91,
    "g": 126,
    "b": 45
  },
  "hsl": {
    "h": 85.926,
    "s": 47.368,
    "l": 33.529
  },
  "oklch": {
    "l": 0.54864,
    "c": 0.11659,
    "h": 129.4
  },
  "luminance": 0.17335
}

Semantic roles & 50–950 ramp

primary
#5B7E2D
secondary
#7E5AAC
accent
#51D78B
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F07
muted
#7D7F7A

Preview Lab

Preview with #5B7E2D

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

Preview Lab → · Contrast checker → · Palette generator →

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