#5E7817#5E7817

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

Color values

HEX#5E7817
RGBrgb(94, 120, 23)
HSLhsl(76, 68%, 28%)
HSVhsv(76, 81%, 47%)
CMYKcmyk(21.7%, 0%, 80.8%, 52.9%)
CIE-LABlab(46.81, -23.52, 46.13)
CIE-LCHlch(46.81, 51.78, 117.02°)
OKLaboklab(53.35% -0.0687 0.1015)
OKLCHoklch(53.35% 0.123 124.1)
XYZxyz(11.4873, 15.8744, 3.2693)
Luminance0.1587 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E7817 #311778
analogous
#786117 #5E7817 #2E7817
triadic
#5E7817 #175E78 #78175E
tetradic
#5E7817 #177861 #311778 #78172E
square
#5E7817 #177861 #311778 #78172E
split-complementary
#5E7817 #172E78 #611778
monochromatic
#141A05 #36450D #5E7817 #86AB21 #ABD832

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5E7817#FFFFFF#000000##FFFFFF
##5E78171.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)
#7F7000
Deuteranopia (green-blind)
#7C6F21
Tritanopia (blue-blind)
#637266
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5e7817;
/* rgb */ color: rgb(94, 120, 23);
/* oklch */ color: oklch(53.3% 0.123 124.1);
Tailwind
colors: {
  custom: {
    50: '#8f9f5d',
    500: '#5e7817',
    950: '#000000',
  },
}
SCSS
$custom: #5e7817;
$custom-light: #8f9f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#5e7817",
  "rgb": {
    "r": 94,
    "g": 120,
    "b": 23
  },
  "hsl": {
    "h": 76.082,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.53348,
    "c": 0.12257,
    "h": 124.1
  },
  "luminance": 0.15874
}

Semantic roles & 50–950 ramp

primary
#5E7817
secondary
#5C3EAD
accent
#3DEB6C
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E05
muted
#7E7E79

Preview Lab

Preview with #5E7817

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

Preview Lab → · Contrast checker → · Palette generator →

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