#5B781F#5B781F

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

Color values

HEX#5B781F
RGBrgb(91, 120, 31)
HSLhsl(80, 59%, 30%)
HSVhsv(80, 74%, 47%)
CMYKcmyk(24.2%, 0%, 74.2%, 52.9%)
CIE-LABlab(46.65, -24.35, 42.99)
CIE-LCHlch(46.65, 49.41, 119.53°)
OKLaboklab(53.18% -0.0701 0.0964)
OKLCHoklch(53.18% 0.119 126)
XYZxyz(11.2782, 15.7558, 3.7431)
Luminance0.1576 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B781F #3C1F78
analogous
#78691F #5B781F #2E781F
triadic
#5B781F #1F5B78 #781F5B
tetradic
#5B781F #1F7869 #3C1F78 #781F2E
square
#5B781F #1F7869 #3C1F78 #781F2E
split-complementary
#5B781F #1F2E78 #691F78
monochromatic
#121806 #364712 #5B781F #80A92C #A1CE43

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B781F#FFFFFF#000000##FFFFFF
##5B781F1.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)
#7F700F
Deuteranopia (green-blind)
#7B6E27
Tritanopia (blue-blind)
#5F7267
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5b781f;
/* rgb */ color: rgb(91, 120, 31);
/* oklch */ color: oklch(53.2% 0.119 126.0);
Tailwind
colors: {
  custom: {
    50: '#8c9f61',
    500: '#5b781f',
    950: '#000000',
  },
}
SCSS
$custom: #5b781f;
$custom-light: #8c9f61;
$custom-dark: #000000;
JSON
{
  "hex": "#5b781f",
  "rgb": {
    "r": 91,
    "g": 120,
    "b": 31
  },
  "hsl": {
    "h": 79.551,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.53183,
    "c": 0.11918,
    "h": 126
  },
  "luminance": 0.15756
}

Semantic roles & 50–950 ramp

primary
#5B781F
secondary
#6847AB
accent
#46E279
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5B781F

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

Preview Lab → · Contrast checker → · Palette generator →

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