#5D791F#5D791F

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

Color values

HEX#5D791F
RGBrgb(93, 121, 31)
HSLhsl(79, 59%, 30%)
HSVhsv(79, 74%, 47%)
CMYKcmyk(23.1%, 0%, 74.4%, 52.5%)
CIE-LABlab(47.11, -24.00, 43.49)
CIE-LCHlch(47.11, 49.67, 118.90°)
OKLaboklab(53.59% -0.0693 0.0974)
OKLCHoklch(53.59% 0.12 125.4)
XYZxyz(11.5990, 16.1007, 3.7927)
Luminance0.1610 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D791F #3B1F79
analogous
#79681F #5D791F #30791F
triadic
#5D791F #1F5D79 #791F5D
tetradic
#5D791F #1F7968 #3B1F79 #791F30
square
#5D791F #1F7968 #3B1F79 #791F30
split-complementary
#5D791F #1F3079 #681F79
monochromatic
#131806 #384813 #5D791F #82AA2B #A4CF43

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5D791F#FFFFFF#000000##FFFFFF
##5D791F1.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)
#80710F
Deuteranopia (green-blind)
#7C6F27
Tritanopia (blue-blind)
#617367
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5d791f;
/* rgb */ color: rgb(93, 121, 31);
/* oklch */ color: oklch(53.6% 0.119 125.4);
Tailwind
colors: {
  custom: {
    50: '#8e9f61',
    500: '#5d791f',
    950: '#000000',
  },
}
SCSS
$custom: #5d791f;
$custom-light: #8e9f61;
$custom-dark: #000000;
JSON
{
  "hex": "#5d791f",
  "rgb": {
    "r": 93,
    "g": 121,
    "b": 31
  },
  "hsl": {
    "h": 78.667,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.53586,
    "c": 0.1195,
    "h": 125.4
  },
  "luminance": 0.16101
}

Semantic roles & 50–950 ramp

primary
#5D791F
secondary
#6747AC
accent
#45E276
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0D0E05
muted
#7D7E79

Preview Lab

Preview with #5D791F

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

Preview Lab → · Contrast checker → · Palette generator →

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