#5B791A#5B791A

#5B791A is a mid, vivid yellow-green. Relative luminance 0.160; OKLCH L 53.4% C 0.124 H 126.0°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#5B791A
RGBrgb(91, 121, 26)
HSLhsl(79, 65%, 29%)
HSVhsv(79, 79%, 47%)
CMYKcmyk(24.8%, 0%, 78.5%, 52.5%)
CIE-LABlab(46.94, -25.16, 45.15)
CIE-LCHlch(46.94, 51.69, 119.12°)
OKLaboklab(53.41% -0.0728 0.1)
OKLCHoklch(53.41% 0.124 126)
XYZxyz(11.3383, 15.9733, 3.4629)
Luminance0.1597 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B791A #381A79
analogous
#79681A #5B791A #2C791A
triadic
#5B791A #1A5B79 #791A5B
tetradic
#5B791A #1A7968 #381A79 #791A2C
square
#5B791A #1A7968 #381A79 #791A2C
split-complementary
#5B791A #1A2C79 #681A79
monochromatic
#131905 #35470F #5B791A #81AB25 #A3D439

Accessibility & contrast

On white

5.01
#5B791A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#5B791A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B791A
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B791A#FFFFFF#000000##FFFFFF
##5B791A1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807004
Deuteranopia (green-blind)
#7C6F23
Tritanopia (blue-blind)
#5F7367
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5b791a;
/* rgb */ color: rgb(91, 121, 26);
/* oklch */ color: oklch(53.4% 0.124 126.0);
Tailwind
colors: {
  custom: {
    50: '#8d9f5f',
    500: '#5b791a',
    950: '#000000',
  },
}
SCSS
$custom: #5b791a;
$custom-light: #8d9f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b791a",
  "rgb": {
    "r": 91,
    "g": 121,
    "b": 26
  },
  "hsl": {
    "h": 78.947,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.53406,
    "c": 0.1237,
    "h": 126
  },
  "luminance": 0.15973
}

Semantic roles & 50–950 ramp

primary
#5B791A
secondary
#6441AD
accent
#40E875
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5B791A

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

Preview Lab → · Contrast checker → · Palette generator →

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