#5B791D#5B791D

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

Color values

HEX#5B791D
RGBrgb(91, 121, 29)
HSLhsl(80, 61%, 29%)
HSVhsv(80, 76%, 47%)
CMYKcmyk(24.8%, 0%, 76%, 52.5%)
CIE-LABlab(46.96, -24.98, 44.07)
CIE-LCHlch(46.96, 50.66, 119.55°)
OKLaboklab(53.43% -0.072 0.0983)
OKLCHoklch(53.43% 0.122 126.2)
XYZxyz(11.3736, 15.9874, 3.6488)
Luminance0.1599 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B791D #3B1D79
analogous
#79691D #5B791D #2D791D
triadic
#5B791D #1D5B79 #791D5B
tetradic
#5B791D #1D7969 #3B1D79 #791D2D
square
#5B791D #1D7969 #3B1D79 #791D2D
split-complementary
#5B791D #1D2D79 #691D79
monochromatic
#131906 #364811 #5B791D #80AA29 #A2D13F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B791D#FFFFFF#000000##FFFFFF
##5B791D1.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)
#80700B
Deuteranopia (green-blind)
#7C6F25
Tritanopia (blue-blind)
#5F7367
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5b791d;
/* rgb */ color: rgb(91, 121, 29);
/* oklch */ color: oklch(53.4% 0.122 126.2);
Tailwind
colors: {
  custom: {
    50: '#8c9f60',
    500: '#5b791d',
    950: '#000000',
  },
}
SCSS
$custom: #5b791d;
$custom-light: #8c9f60;
$custom-dark: #000000;
JSON
{
  "hex": "#5b791d",
  "rgb": {
    "r": 91,
    "g": 121,
    "b": 29
  },
  "hsl": {
    "h": 79.565,
    "s": 61.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.53426,
    "c": 0.12184,
    "h": 126.2
  },
  "luminance": 0.15988
}

Semantic roles & 50–950 ramp

primary
#5B791D
secondary
#6745AD
accent
#43E478
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5B791D

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

Preview Lab → · Contrast checker → · Palette generator →

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