#5B7E2A#5B7E2A

#5B7E2A is a mid, moderate yellow-green. Relative luminance 0.173; OKLCH L 54.8% C 0.119 H 129.0°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#5B7E2A
RGBrgb(91, 126, 42)
HSLhsl(85, 50%, 33%)
HSVhsv(85, 67%, 49%)
CMYKcmyk(27.8%, 0%, 66.7%, 50.6%)
CIE-LABlab(48.65, -26.50, 40.38)
CIE-LCHlch(48.65, 48.30, 123.27°)
OKLaboklab(54.83% -0.075 0.0925)
OKLCHoklch(54.83% 0.119 129)
XYZxyz(12.1931, 17.3127, 4.8893)
Luminance0.1731 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7E2A #4D2A7E
analogous
#7E772A #5B7E2A #317E2A
triadic
#5B7E2A #2A5B7E #7E2A5B
tetradic
#5B7E2A #2A7E77 #4D2A7E #7E2A31
square
#5B7E2A #2A7E77 #4D2A7E #7E2A31
split-complementary
#5B7E2A #2A317E #772A7E
monochromatic
#19220B #3A501B #5B7E2A #7CAC39 #9AC85A

Accessibility & contrast

On white

4.71
#5B7E2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#5B7E2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7E2A
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7E2A#FFFFFF#000000##FFFFFF
##5B7E2A1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#84751F
Deuteranopia (green-blind)
#7F7331
Tritanopia (blue-blind)
#5E786D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #5b7e2a;
/* rgb */ color: rgb(91, 126, 42);
/* oklch */ color: oklch(54.8% 0.119 129.0);
Tailwind
colors: {
  custom: {
    50: '#8ca368',
    500: '#5b7e2a',
    950: '#000000',
  },
}
SCSS
$custom: #5b7e2a;
$custom-light: #8ca368;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7e2a",
  "rgb": {
    "r": 91,
    "g": 126,
    "b": 42
  },
  "hsl": {
    "h": 85,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.54832,
    "c": 0.11912,
    "h": 129
  },
  "luminance": 0.17313
}

Semantic roles & 50–950 ramp

primary
#5B7E2A
secondary
#7B56AE
accent
#4EDA88
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F06
muted
#7D7F7A

Preview Lab

Preview with #5B7E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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