#5B781E#5B781E

#5B781E is a mid, moderate yellow-green. Relative luminance 0.158; OKLCH L 53.2% C 0.120 H 126.0°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#5B781E
RGBrgb(91, 120, 30)
HSLhsl(79, 60%, 29%)
HSVhsv(79, 75%, 47%)
CMYKcmyk(24.2%, 0%, 75%, 52.9%)
CIE-LABlab(46.65, -24.42, 43.38)
CIE-LCHlch(46.65, 49.78, 119.38°)
OKLaboklab(53.18% -0.0704 0.097)
OKLCHoklch(53.18% 0.12 126)
XYZxyz(11.2653, 15.7507, 3.6747)
Luminance0.1575 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B781E #3B1E78
analogous
#78681E #5B781E #2E781E
triadic
#5B781E #1E5B78 #781E5B
tetradic
#5B781E #1E7868 #3B1E78 #781E2E
square
#5B781E #1E7868 #3B1E78 #781E2E
split-complementary
#5B781E #1E2E78 #681E78
monochromatic
#131806 #364712 #5B781E #80A92A #A2CF41

Accessibility & contrast

On white

5.06
#5B781E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#5B781E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B781E
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B781E#FFFFFF#000000##FFFFFF
##5B781E1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F700E
Deuteranopia (green-blind)
#7B6E26
Tritanopia (blue-blind)
#5F7267
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5b781e;
/* rgb */ color: rgb(91, 120, 30);
/* oklch */ color: oklch(53.2% 0.120 126.0);
Tailwind
colors: {
  custom: {
    50: '#8c9f60',
    500: '#5b781e',
    950: '#000000',
  },
}
SCSS
$custom: #5b781e;
$custom-light: #8c9f60;
$custom-dark: #000000;
JSON
{
  "hex": "#5b781e",
  "rgb": {
    "r": 91,
    "g": 120,
    "b": 30
  },
  "hsl": {
    "h": 79.333,
    "s": 60,
    "l": 29.412
  },
  "oklch": {
    "l": 0.53175,
    "c": 0.11985,
    "h": 126
  },
  "luminance": 0.15751
}

Semantic roles & 50–950 ramp

primary
#5B781E
secondary
#6746AC
accent
#45E378
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5B781E

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

Preview Lab → · Contrast checker → · Palette generator →

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