#5D7817#5D7817

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

Color values

HEX#5D7817
RGBrgb(93, 120, 23)
HSLhsl(77, 68%, 28%)
HSVhsv(77, 81%, 47%)
CMYKcmyk(22.5%, 0%, 80.8%, 52.9%)
CIE-LABlab(46.74, -23.95, 46.04)
CIE-LCHlch(46.74, 51.90, 117.49°)
OKLaboklab(53.27% -0.0698 0.1013)
OKLCHoklch(53.27% 0.123 124.6)
XYZxyz(11.3854, 15.8218, 3.2645)
Luminance0.1582 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D7817 #321778
analogous
#786217 #5D7817 #2C7817
triadic
#5D7817 #175D78 #78175D
tetradic
#5D7817 #177862 #321778 #78172C
square
#5D7817 #177862 #321778 #78172C
split-complementary
#5D7817 #172C78 #621778
monochromatic
#141A05 #35450D #5D7817 #85AB21 #A9D832

Accessibility & contrast

On white

5.04
#5D7817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#5D7817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D7817
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D7817#FFFFFF#000000##FFFFFF
##5D78171.005.044.165.04
#FFFFFF5.041.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7000
Deuteranopia (green-blind)
#7C6E21
Tritanopia (blue-blind)
#627266
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5d7817;
/* rgb */ color: rgb(93, 120, 23);
/* oklch */ color: oklch(53.3% 0.123 124.6);
Tailwind
colors: {
  custom: {
    50: '#8e9f5d',
    500: '#5d7817',
    950: '#000000',
  },
}
SCSS
$custom: #5d7817;
$custom-light: #8e9f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#5d7817",
  "rgb": {
    "r": 93,
    "g": 120,
    "b": 23
  },
  "hsl": {
    "h": 76.701,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.53274,
    "c": 0.12307,
    "h": 124.6
  },
  "luminance": 0.15822
}

Semantic roles & 50–950 ramp

primary
#5D7817
secondary
#5D3EAD
accent
#3DEB6D
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E05
muted
#7E7E79

Preview Lab

Preview with #5D7817

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

Preview Lab → · Contrast checker → · Palette generator →

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