#5F781D#5F781D

#5F781D is a mid, moderate yellow-green. Relative luminance 0.160; OKLCH L 53.5% C 0.118 H 124.0°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#5F781D
RGBrgb(95, 120, 29)
HSLhsl(76, 61%, 29%)
HSVhsv(76, 76%, 47%)
CMYKcmyk(20.8%, 0%, 75.8%, 52.9%)
CIE-LABlab(46.91, -22.76, 44.12)
CIE-LCHlch(46.91, 49.64, 117.29°)
OKLaboklab(53.46% -0.0662 0.0983)
OKLCHoklch(53.46% 0.119 124)
XYZxyz(11.6577, 15.9545, 3.6275)
Luminance0.1595 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F781D #361D78
analogous
#78641D #5F781D #31781D
triadic
#5F781D #1D5F78 #781D5F
tetradic
#5F781D #1D7864 #361D78 #781D31
square
#5F781D #1D7864 #361D78 #781D31
split-complementary
#5F781D #1D3178 #641D78
monochromatic
#141906 #384711 #5F781D #86A929 #A9D13F

Accessibility & contrast

On white

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

On black

4.19
#5F781D on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5F781D#FFFFFF#000000##FFFFFF
##5F781D1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F700B
Deuteranopia (green-blind)
#7C6F25
Tritanopia (blue-blind)
#647266
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5f781d;
/* rgb */ color: rgb(95, 120, 29);
/* oklch */ color: oklch(53.5% 0.118 124.0);
Tailwind
colors: {
  custom: {
    50: '#8f9f60',
    500: '#5f781d',
    950: '#000000',
  },
}
SCSS
$custom: #5f781d;
$custom-light: #8f9f60;
$custom-dark: #000000;
JSON
{
  "hex": "#5f781d",
  "rgb": {
    "r": 95,
    "g": 120,
    "b": 29
  },
  "hsl": {
    "h": 76.484,
    "s": 61.074,
    "l": 29.216
  },
  "oklch": {
    "l": 0.53462,
    "c": 0.1185,
    "h": 124
  },
  "luminance": 0.15955
}

Semantic roles & 50–950 ramp

primary
#5F781D
secondary
#6145AC
accent
#44E470
background
#F9F9F5
surface
#F1F2EA
border
#CBCCC6
text
#0D0E05
muted
#7E7E79

Preview Lab

Preview with #5F781D

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

Preview Lab → · Contrast checker → · Palette generator →

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