#5F781F#5F781F

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

Color values

HEX#5F781F
RGBrgb(95, 120, 31)
HSLhsl(77, 59%, 30%)
HSVhsv(77, 74%, 47%)
CMYKcmyk(20.8%, 0%, 74.2%, 52.9%)
CIE-LABlab(46.93, -22.64, 43.36)
CIE-LCHlch(46.93, 48.91, 117.57°)
OKLaboklab(53.48% -0.0657 0.097)
OKLCHoklch(53.48% 0.117 124.1)
XYZxyz(11.6832, 15.9647, 3.7620)
Luminance0.1596 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F781F #381F78
analogous
#78651F #5F781F #33781F
triadic
#5F781F #1F5F78 #781F5F
tetradic
#5F781F #1F7865 #381F78 #781F33
square
#5F781F #1F7865 #381F78 #781F33
split-complementary
#5F781F #1F3378 #651F78
monochromatic
#131806 #384712 #5F781F #86A92C #A7CE43

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F781F#FFFFFF#000000##FFFFFF
##5F781F1.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)
#7F700F
Deuteranopia (green-blind)
#7C6F27
Tritanopia (blue-blind)
#647267
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5f781f;
/* rgb */ color: rgb(95, 120, 31);
/* oklch */ color: oklch(53.5% 0.117 124.1);
Tailwind
colors: {
  custom: {
    50: '#8f9f61',
    500: '#5f781f',
    950: '#000000',
  },
}
SCSS
$custom: #5f781f;
$custom-light: #8f9f61;
$custom-dark: #000000;
JSON
{
  "hex": "#5f781f",
  "rgb": {
    "r": 95,
    "g": 120,
    "b": 31
  },
  "hsl": {
    "h": 76.854,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.53478,
    "c": 0.11716,
    "h": 124.1
  },
  "luminance": 0.15965
}

Semantic roles & 50–950 ramp

primary
#5F781F
secondary
#6347AB
accent
#46E272
background
#F9F9F5
surface
#F1F2EA
border
#CBCCC6
text
#0D0E05
muted
#7E7E79

Preview Lab

Preview with #5F781F

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

Preview Lab → · Contrast checker → · Palette generator →

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