#5B781D#5B781D

#5B781D is a mid, vivid yellow-green. Relative luminance 0.157; OKLCH L 53.2% C 0.121 H 125.9°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#5B781D
RGBrgb(91, 120, 29)
HSLhsl(79, 61%, 29%)
HSVhsv(79, 76%, 47%)
CMYKcmyk(24.2%, 0%, 75.8%, 52.9%)
CIE-LABlab(46.64, -24.48, 43.76)
CIE-LCHlch(46.64, 50.14, 119.23°)
OKLaboklab(53.17% -0.0707 0.0976)
OKLCHoklch(53.17% 0.121 125.9)
XYZxyz(11.2527, 15.7456, 3.6085)
Luminance0.1575 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B781D #3A1D78
analogous
#78681D #5B781D #2E781D
triadic
#5B781D #1D5B78 #781D5B
tetradic
#5B781D #1D7868 #3A1D78 #781D2E
square
#5B781D #1D7868 #3A1D78 #781D2E
split-complementary
#5B781D #1D2E78 #681D78
monochromatic
#131906 #364711 #5B781D #80A929 #A2D13F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B781D#FFFFFF#000000##FFFFFF
##5B781D1.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)
#7F700B
Deuteranopia (green-blind)
#7B6E25
Tritanopia (blue-blind)
#5F7266
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5b781d;
/* rgb */ color: rgb(91, 120, 29);
/* oklch */ color: oklch(53.2% 0.121 125.9);
Tailwind
colors: {
  custom: {
    50: '#8c9f60',
    500: '#5b781d',
    950: '#000000',
  },
}
SCSS
$custom: #5b781d;
$custom-light: #8c9f60;
$custom-dark: #000000;
JSON
{
  "hex": "#5b781d",
  "rgb": {
    "r": 91,
    "g": 120,
    "b": 29
  },
  "hsl": {
    "h": 79.121,
    "s": 61.074,
    "l": 29.216
  },
  "oklch": {
    "l": 0.53168,
    "c": 0.12052,
    "h": 125.9
  },
  "luminance": 0.15746
}

Semantic roles & 50–950 ramp

primary
#5B781D
secondary
#6645AC
accent
#44E477
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5B781D

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

Preview Lab → · Contrast checker → · Palette generator →

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