#5B791B#5B791B

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

Color values

HEX#5B791B
RGBrgb(91, 121, 27)
HSLhsl(79, 64%, 29%)
HSVhsv(79, 78%, 47%)
CMYKcmyk(24.8%, 0%, 77.7%, 52.5%)
CIE-LABlab(46.95, -25.10, 44.80)
CIE-LCHlch(46.95, 51.35, 119.26°)
OKLaboklab(53.41% -0.0725 0.0995)
OKLCHoklch(53.41% 0.123 126.1)
XYZxyz(11.3497, 15.9778, 3.5228)
Luminance0.1598 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B791B #391B79
analogous
#79681B #5B791B #2C791B
triadic
#5B791B #1B5B79 #791B5B
tetradic
#5B791B #1B7968 #391B79 #791B2C
square
#5B791B #1B7968 #391B79 #791B2C
split-complementary
#5B791B #1B2C79 #681B79
monochromatic
#131906 #354710 #5B791B #81AB26 #A3D33B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B791B#FFFFFF#000000##FFFFFF
##5B791B1.005.014.205.01
#FFFFFF5.011.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b791b;
/* rgb */ color: rgb(91, 121, 27);
/* oklch */ color: oklch(53.4% 0.123 126.1);
Tailwind
colors: {
  custom: {
    50: '#8d9f5f',
    500: '#5b791b',
    950: '#000000',
  },
}
SCSS
$custom: #5b791b;
$custom-light: #8d9f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b791b",
  "rgb": {
    "r": 91,
    "g": 121,
    "b": 27
  },
  "hsl": {
    "h": 79.149,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.53412,
    "c": 0.1231,
    "h": 126.1
  },
  "luminance": 0.15978
}

Semantic roles & 50–950 ramp

primary
#5B791B
secondary
#6543AD
accent
#41E776
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5B791B

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

Preview Lab → · Contrast checker → · Palette generator →

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