#5B791C#5B791C

#5B791C 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#5B791C
RGBrgb(91, 121, 28)
HSLhsl(79, 62%, 29%)
HSVhsv(79, 77%, 47%)
CMYKcmyk(24.8%, 0%, 76.9%, 52.5%)
CIE-LABlab(46.95, -25.04, 44.44)
CIE-LCHlch(46.95, 51.01, 119.40°)
OKLaboklab(53.42% -0.0723 0.0989)
OKLCHoklch(53.42% 0.122 126.2)
XYZxyz(11.3614, 15.9826, 3.5848)
Luminance0.1598 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B791C #3A1C79
analogous
#79691C #5B791C #2D791C
triadic
#5B791C #1C5B79 #791C5B
tetradic
#5B791C #1C7969 #3A1C79 #791C2D
square
#5B791C #1C7969 #3A1C79 #791C2D
split-complementary
#5B791C #1C2D79 #691C79
monochromatic
#131906 #364710 #5B791C #80AB28 #A2D23D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #5b791c;
/* rgb */ color: rgb(91, 121, 28);
/* oklch */ color: oklch(53.4% 0.122 126.2);
Tailwind
colors: {
  custom: {
    50: '#8d9f60',
    500: '#5b791c',
    950: '#000000',
  },
}
SCSS
$custom: #5b791c;
$custom-light: #8d9f60;
$custom-dark: #000000;
JSON
{
  "hex": "#5b791c",
  "rgb": {
    "r": 91,
    "g": 121,
    "b": 28
  },
  "hsl": {
    "h": 79.355,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.53419,
    "c": 0.12248,
    "h": 126.2
  },
  "luminance": 0.15983
}

Semantic roles & 50–950 ramp

primary
#5B791C
secondary
#6644AD
accent
#42E577
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5B791C

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

Preview Lab → · Contrast checker → · Palette generator →

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