#5B7A2D#5B7A2D

#5B7A2D is a mid, moderate yellow-green. Relative luminance 0.163; OKLCH L 53.8% C 0.111 H 128.2°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#5B7A2D
RGBrgb(91, 122, 45)
HSLhsl(84, 46%, 33%)
HSVhsv(84, 63%, 48%)
CMYKcmyk(25.4%, 0%, 63.1%, 52.2%)
CIE-LABlab(47.41, -24.25, 37.63)
CIE-LCHlch(47.41, 44.76, 122.80°)
OKLaboklab(53.83% -0.0685 0.0871)
OKLCHoklch(53.83% 0.111 128.2)
XYZxyz(11.7475, 16.3324, 5.0157)
Luminance0.1633 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7A2D #4C2D7A
analogous
#7A732D #5B7A2D #347A2D
triadic
#5B7A2D #2D5B7A #7A2D5B
tetradic
#5B7A2D #2D7A73 #4C2D7A #7A2D34
square
#5B7A2D #2D7A73 #4C2D7A #7A2D34
split-complementary
#5B7A2D #2D347A #732D7A
monochromatic
#18210C #3A4D1D #5B7A2D #7CA73D #9BC45E

Accessibility & contrast

On white

4.92
#5B7A2D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#5B7A2D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7A2D
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7A2D#FFFFFF#000000##FFFFFF
##5B7A2D1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807224
Deuteranopia (green-blind)
#7C7033
Tritanopia (blue-blind)
#5E756A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5b7a2d;
/* rgb */ color: rgb(91, 122, 45);
/* oklch */ color: oklch(53.8% 0.111 128.2);
Tailwind
colors: {
  custom: {
    50: '#8ca069',
    500: '#5b7a2d',
    950: '#000000',
  },
}
SCSS
$custom: #5b7a2d;
$custom-light: #8ca069;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7a2d",
  "rgb": {
    "r": 91,
    "g": 122,
    "b": 45
  },
  "hsl": {
    "h": 84.156,
    "s": 46.108,
    "l": 32.745
  },
  "oklch": {
    "l": 0.53833,
    "c": 0.11082,
    "h": 128.2
  },
  "luminance": 0.16333
}

Semantic roles & 50–950 ramp

primary
#5B7A2D
secondary
#7A59AA
accent
#52D687
background
#F8F9F6
surface
#F0F2EB
border
#CBCCC6
text
#0C0E06
muted
#7D7E7A

Preview Lab

Preview with #5B7A2D

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

Preview Lab → · Contrast checker → · Palette generator →

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