#5E781F#5E781F

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

Color values

HEX#5E781F
RGBrgb(94, 120, 31)
HSLhsl(78, 59%, 30%)
HSVhsv(78, 74%, 47%)
CMYKcmyk(21.7%, 0%, 74.2%, 52.9%)
CIE-LABlab(46.86, -23.07, 43.26)
CIE-LCHlch(46.86, 49.03, 118.07°)
OKLaboklab(53.4% -0.0668 0.0969)
OKLCHoklch(53.4% 0.118 124.6)
XYZxyz(11.5800, 15.9114, 3.7572)
Luminance0.1591 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E781F #391F78
analogous
#78661F #5E781F #32781F
triadic
#5E781F #1F5E78 #781F5E
tetradic
#5E781F #1F7866 #391F78 #781F32
square
#5E781F #1F7866 #391F78 #781F32
split-complementary
#5E781F #1F3278 #661F78
monochromatic
#131806 #384712 #5E781F #84A92C #A6CE43

Accessibility & contrast

On white

5.02
#5E781F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#5E781F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E781F
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E781F#FFFFFF#000000##FFFFFF
##5E781F1.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e781f;
/* rgb */ color: rgb(94, 120, 31);
/* oklch */ color: oklch(53.4% 0.118 124.6);
Tailwind
colors: {
  custom: {
    50: '#8e9f61',
    500: '#5e781f',
    950: '#000000',
  },
}
SCSS
$custom: #5e781f;
$custom-light: #8e9f61;
$custom-dark: #000000;
JSON
{
  "hex": "#5e781f",
  "rgb": {
    "r": 94,
    "g": 120,
    "b": 31
  },
  "hsl": {
    "h": 77.528,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.53403,
    "c": 0.11766,
    "h": 124.6
  },
  "luminance": 0.15912
}

Semantic roles & 50–950 ramp

primary
#5E781F
secondary
#6547AB
accent
#46E273
background
#F9F9F5
surface
#F1F2EA
border
#CBCCC6
text
#0D0E05
muted
#7E7E79

Preview Lab

Preview with #5E781F

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

Preview Lab → · Contrast checker → · Palette generator →

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