#5D781F#5D781F

#5D781F is a mid, moderate yellow-green. Relative luminance 0.159; OKLCH L 53.3% C 0.118 H 125.1°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#5D781F
RGBrgb(93, 120, 31)
HSLhsl(78, 59%, 30%)
HSVhsv(78, 74%, 47%)
CMYKcmyk(22.5%, 0%, 74.2%, 52.9%)
CIE-LABlab(46.79, -23.50, 43.17)
CIE-LCHlch(46.79, 49.15, 118.56°)
OKLaboklab(53.33% -0.0679 0.0967)
OKLCHoklch(53.33% 0.118 125.1)
XYZxyz(11.4781, 15.8589, 3.7524)
Luminance0.1586 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D781F #3A1F78
analogous
#78661F #5D781F #31781F
triadic
#5D781F #1F5D78 #781F5D
tetradic
#5D781F #1F7866 #3A1F78 #781F31
square
#5D781F #1F7866 #3A1F78 #781F31
split-complementary
#5D781F #1F3178 #661F78
monochromatic
#131806 #374712 #5D781F #83A92C #A4CE43

Accessibility & contrast

On white

5.03
#5D781F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#5D781F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D781F
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D781F#FFFFFF#000000##FFFFFF
##5D781F1.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F700F
Deuteranopia (green-blind)
#7B6F27
Tritanopia (blue-blind)
#617267
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5d781f;
/* rgb */ color: rgb(93, 120, 31);
/* oklch */ color: oklch(53.3% 0.118 125.1);
Tailwind
colors: {
  custom: {
    50: '#8e9f61',
    500: '#5d781f',
    950: '#000000',
  },
}
SCSS
$custom: #5d781f;
$custom-light: #8e9f61;
$custom-dark: #000000;
JSON
{
  "hex": "#5d781f",
  "rgb": {
    "r": 93,
    "g": 120,
    "b": 31
  },
  "hsl": {
    "h": 78.202,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.53329,
    "c": 0.11816,
    "h": 125.1
  },
  "luminance": 0.15859
}

Semantic roles & 50–950 ramp

primary
#5D781F
secondary
#6647AB
accent
#46E275
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0D0E05
muted
#7D7E79

Preview Lab

Preview with #5D781F

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

Preview Lab → · Contrast checker → · Palette generator →

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