#5B791E#5B791E

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

Color values

HEX#5B791E
RGBrgb(91, 121, 30)
HSLhsl(80, 60%, 30%)
HSVhsv(80, 75%, 47%)
CMYKcmyk(24.8%, 0%, 75.2%, 52.5%)
CIE-LABlab(46.96, -24.92, 43.69)
CIE-LCHlch(46.96, 50.30, 119.70°)
OKLaboklab(53.43% -0.0718 0.0977)
OKLCHoklch(53.43% 0.121 126.3)
XYZxyz(11.3862, 15.9924, 3.7150)
Luminance0.1599 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B791E #3C1E79
analogous
#796A1E #5B791E #2E791E
triadic
#5B791E #1E5B79 #791E5B
tetradic
#5B791E #1E796A #3C1E79 #791E2E
square
#5B791E #1E796A #3C1E79 #791E2E
split-complementary
#5B791E #1E2E79 #6A1E79
monochromatic
#121906 #364812 #5B791E #80AA2A #A1D041

Accessibility & contrast

On white

5.00
#5B791E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#5B791E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B791E
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B791E#FFFFFF#000000##FFFFFF
##5B791E1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80710D
Deuteranopia (green-blind)
#7C6F26
Tritanopia (blue-blind)
#5F7367
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5b791e;
/* rgb */ color: rgb(91, 121, 30);
/* oklch */ color: oklch(53.4% 0.121 126.3);
Tailwind
colors: {
  custom: {
    50: '#8c9f61',
    500: '#5b791e',
    950: '#000000',
  },
}
SCSS
$custom: #5b791e;
$custom-light: #8c9f61;
$custom-dark: #000000;
JSON
{
  "hex": "#5b791e",
  "rgb": {
    "r": 91,
    "g": 121,
    "b": 30
  },
  "hsl": {
    "h": 79.78,
    "s": 60.265,
    "l": 29.608
  },
  "oklch": {
    "l": 0.53434,
    "c": 0.12119,
    "h": 126.3
  },
  "luminance": 0.15993
}

Semantic roles & 50–950 ramp

primary
#5B791E
secondary
#6846AD
accent
#44E379
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5B791E

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

Preview Lab → · Contrast checker → · Palette generator →

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