#5B7927#5B7927

#5B7927 is a mid, moderate yellow-green. Relative luminance 0.160; OKLCH L 53.5% C 0.115 H 127.1°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#5B7927
RGBrgb(91, 121, 39)
HSLhsl(82, 51%, 31%)
HSVhsv(82, 68%, 47%)
CMYKcmyk(24.8%, 0%, 67.8%, 52.5%)
CIE-LABlab(47.03, -24.27, 40.00)
CIE-LCHlch(47.03, 46.79, 121.25°)
OKLaboklab(53.51% -0.0691 0.0913)
OKLCHoklch(53.51% 0.115 127.1)
XYZxyz(11.5180, 16.0452, 4.4093)
Luminance0.1605 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7927 #452779
analogous
#796E27 #5B7927 #327927
triadic
#5B7927 #275B79 #79275B
tetradic
#5B7927 #27796E #452779 #792732
square
#5B7927 #27796E #452779 #792732
split-complementary
#5B7927 #273279 #6E2779
monochromatic
#151C09 #384B18 #5B7927 #7EA736 #9DC853

Accessibility & contrast

On white

4.99
#5B7927 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#5B7927 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7927
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7927#FFFFFF#000000##FFFFFF
##5B79271.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F711C
Deuteranopia (green-blind)
#7B6F2D
Tritanopia (blue-blind)
#5E7368
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5b7927;
/* rgb */ color: rgb(91, 121, 39);
/* oklch */ color: oklch(53.5% 0.115 127.1);
Tailwind
colors: {
  custom: {
    50: '#8ca066',
    500: '#5b7927',
    950: '#000000',
  },
}
SCSS
$custom: #5b7927;
$custom-light: #8ca066;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7927",
  "rgb": {
    "r": 91,
    "g": 121,
    "b": 39
  },
  "hsl": {
    "h": 81.951,
    "s": 51.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.53512,
    "c": 0.11454,
    "h": 127.1
  },
  "luminance": 0.16045
}

Semantic roles & 50–950 ramp

primary
#5B7927
secondary
#7251AB
accent
#4DDB81
background
#F8F9F6
surface
#F0F2EB
border
#CBCCC6
text
#0C0E06
muted
#7D7E7A

Preview Lab

Preview with #5B7927

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

Preview Lab → · Contrast checker → · Palette generator →

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