#5B791F#5B791F

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

Color values

HEX#5B791F
RGBrgb(91, 121, 31)
HSLhsl(80, 59%, 30%)
HSVhsv(80, 74%, 47%)
CMYKcmyk(24.8%, 0%, 74.4%, 52.5%)
CIE-LABlab(46.97, -24.85, 43.31)
CIE-LCHlch(46.97, 49.93, 119.85°)
OKLaboklab(53.44% -0.0715 0.097)
OKLCHoklch(53.44% 0.121 126.4)
XYZxyz(11.3991, 15.9976, 3.7834)
Luminance0.1600 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B791F #3D1F79
analogous
#796A1F #5B791F #2E791F
triadic
#5B791F #1F5B79 #791F5B
tetradic
#5B791F #1F796A #3D1F79 #791F2E
square
#5B791F #1F796A #3D1F79 #791F2E
split-complementary
#5B791F #1F2E79 #6A1F79
monochromatic
#121806 #364813 #5B791F #80AA2B #A0CF43

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B791F#FFFFFF#000000##FFFFFF
##5B791F1.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)
#80710F
Deuteranopia (green-blind)
#7C6F27
Tritanopia (blue-blind)
#5F7367
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5b791f;
/* rgb */ color: rgb(91, 121, 31);
/* oklch */ color: oklch(53.4% 0.121 126.4);
Tailwind
colors: {
  custom: {
    50: '#8c9f61',
    500: '#5b791f',
    950: '#000000',
  },
}
SCSS
$custom: #5b791f;
$custom-light: #8c9f61;
$custom-dark: #000000;
JSON
{
  "hex": "#5b791f",
  "rgb": {
    "r": 91,
    "g": 121,
    "b": 31
  },
  "hsl": {
    "h": 80,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.53442,
    "c": 0.12053,
    "h": 126.4
  },
  "luminance": 0.15998
}

Semantic roles & 50–950 ramp

primary
#5B791F
secondary
#6947AC
accent
#45E27A
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5B791F

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

Preview Lab → · Contrast checker → · Palette generator →

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