#5B781A#5B781A

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

Color values

HEX#5B781A
RGBrgb(91, 120, 26)
HSLhsl(79, 64%, 29%)
HSVhsv(79, 78%, 47%)
CMYKcmyk(24.2%, 0%, 78.3%, 52.9%)
CIE-LABlab(46.62, -24.66, 44.85)
CIE-LCHlch(46.62, 51.18, 118.80°)
OKLaboklab(53.15% -0.0714 0.0994)
OKLCHoklch(53.15% 0.122 125.7)
XYZxyz(11.2174, 15.7315, 3.4226)
Luminance0.1573 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B781A #371A78
analogous
#78661A #5B781A #2C781A
triadic
#5B781A #1A5B78 #781A5B
tetradic
#5B781A #1A7866 #371A78 #781A2C
square
#5B781A #1A7866 #371A78 #781A2C
split-complementary
#5B781A #1A2C78 #661A78
monochromatic
#131905 #35460F #5B781A #81AA25 #A4D438

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B781A#FFFFFF#000000##FFFFFF
##5B781A1.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)
#7F7005
Deuteranopia (green-blind)
#7B6E23
Tritanopia (blue-blind)
#5F7266
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5b781a;
/* rgb */ color: rgb(91, 120, 26);
/* oklch */ color: oklch(53.1% 0.122 125.7);
Tailwind
colors: {
  custom: {
    50: '#8d9f5f',
    500: '#5b781a',
    950: '#000000',
  },
}
SCSS
$custom: #5b781a;
$custom-light: #8d9f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b781a",
  "rgb": {
    "r": 91,
    "g": 120,
    "b": 26
  },
  "hsl": {
    "h": 78.511,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.53147,
    "c": 0.12239,
    "h": 125.7
  },
  "luminance": 0.15732
}

Semantic roles & 50–950 ramp

primary
#5B781A
secondary
#6241AC
accent
#40E774
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5B781A

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

Preview Lab → · Contrast checker → · Palette generator →

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