#5B782F#5B782F

#5B782F is a mid, moderate yellow-green. Relative luminance 0.159; OKLCH L 53.3% C 0.106 H 127.8°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#5B782F
RGBrgb(91, 120, 47)
HSLhsl(84, 44%, 33%)
HSVhsv(84, 61%, 47%)
CMYKcmyk(24.2%, 0%, 60.8%, 52.9%)
CIE-LABlab(46.79, -23.05, 35.97)
CIE-LCHlch(46.79, 42.72, 122.65°)
OKLaboklab(53.34% -0.065 0.0838)
OKLCHoklch(53.34% 0.106 127.8)
XYZxyz(11.5439, 15.8621, 5.1423)
Luminance0.1586 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B782F #4C2F78
analogous
#78712F #5B782F #36782F
triadic
#5B782F #2F5B78 #782F5B
tetradic
#5B782F #2F7871 #4C2F78 #782F36
square
#5B782F #2F7871 #4C2F78 #782F36
split-complementary
#5B782F #2F3678 #712F78
monochromatic
#18200D #3A4C1E #5B782F #7CA440 #9BC160

Accessibility & contrast

On white

5.03
#5B782F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#5B782F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B782F
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B782F#FFFFFF#000000##FFFFFF
##5B782F1.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b782f;
/* rgb */ color: rgb(91, 120, 47);
/* oklch */ color: oklch(53.3% 0.106 127.8);
Tailwind
colors: {
  custom: {
    50: '#8b9f6a',
    500: '#5b782f',
    950: '#000000',
  },
}
SCSS
$custom: #5b782f;
$custom-light: #8b9f6a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b782f",
  "rgb": {
    "r": 91,
    "g": 120,
    "b": 47
  },
  "hsl": {
    "h": 83.836,
    "s": 43.713,
    "l": 32.745
  },
  "oklch": {
    "l": 0.53342,
    "c": 0.10607,
    "h": 127.8
  },
  "luminance": 0.15862
}

Semantic roles & 50–950 ramp

primary
#5B782F
secondary
#7A5BA8
accent
#54D387
background
#F8F9F6
surface
#F0F2EB
border
#CBCCC6
text
#0C0E07
muted
#7D7E7A

Preview Lab

Preview with #5B782F

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

Preview Lab → · Contrast checker → · Palette generator →

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