#5D791B#5D791B

#5D791B is a mid, vivid yellow-green. Relative luminance 0.161; OKLCH L 53.6% C 0.122 H 125.2°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#5D791B
RGBrgb(93, 121, 27)
HSLhsl(78, 64%, 29%)
HSVhsv(78, 78%, 47%)
CMYKcmyk(23.1%, 0%, 77.7%, 52.5%)
CIE-LABlab(47.08, -24.24, 44.97)
CIE-LCHlch(47.08, 51.09, 118.33°)
OKLaboklab(53.56% -0.0703 0.0998)
OKLCHoklch(53.56% 0.122 125.2)
XYZxyz(11.5495, 16.0809, 3.5321)
Luminance0.1608 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D791B #371B79
analogous
#79661B #5D791B #2E791B
triadic
#5D791B #1B5D79 #791B5D
tetradic
#5D791B #1B7966 #371B79 #791B2E
square
#5D791B #1B7966 #371B79 #791B2E
split-complementary
#5D791B #1B2E79 #661B79
monochromatic
#131906 #374710 #5D791B #83AB26 #A6D33B

Accessibility & contrast

On white

4.98
#5D791B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#5D791B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D791B
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D791B#FFFFFF#000000##FFFFFF
##5D791B1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807106
Deuteranopia (green-blind)
#7C6F24
Tritanopia (blue-blind)
#617367
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5d791b;
/* rgb */ color: rgb(93, 121, 27);
/* oklch */ color: oklch(53.6% 0.122 125.2);
Tailwind
colors: {
  custom: {
    50: '#8e9f5f',
    500: '#5d791b',
    950: '#000000',
  },
}
SCSS
$custom: #5d791b;
$custom-light: #8e9f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#5d791b",
  "rgb": {
    "r": 93,
    "g": 121,
    "b": 27
  },
  "hsl": {
    "h": 77.872,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.53557,
    "c": 0.12207,
    "h": 125.2
  },
  "luminance": 0.16081
}

Semantic roles & 50–950 ramp

primary
#5D791B
secondary
#6243AD
accent
#41E772
background
#F9F9F5
surface
#F1F2EA
border
#CBCCC6
text
#0D0E05
muted
#7E7E79

Preview Lab

Preview with #5D791B

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

Preview Lab → · Contrast checker → · Palette generator →

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