#5D7918#5D7918

#5D7918 is a mid, vivid yellow-green. Relative luminance 0.161; OKLCH L 53.5% C 0.124 H 125.0°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#5D7918
RGBrgb(93, 121, 24)
HSLhsl(77, 67%, 28%)
HSVhsv(77, 80%, 47%)
CMYKcmyk(23.1%, 0%, 80.2%, 52.5%)
CIE-LABlab(47.06, -24.41, 46.01)
CIE-LCHlch(47.06, 52.08, 117.95°)
OKLaboklab(53.54% -0.071 0.1014)
OKLCHoklch(53.54% 0.124 125)
XYZxyz(11.5165, 16.0677, 3.3586)
Luminance0.1607 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D7918 #341879
analogous
#796418 #5D7918 #2C7918
triadic
#5D7918 #185D79 #79185D
tetradic
#5D7918 #187964 #341879 #79182C
square
#5D7918 #187964 #341879 #79182C
split-complementary
#5D7918 #182C79 #641879
monochromatic
#141A05 #36460E #5D7918 #84AC22 #A8D735

Accessibility & contrast

On white

4.98
#5D7918 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#5D7918 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D7918
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D7918#FFFFFF#000000##FFFFFF
##5D79181.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807100
Deuteranopia (green-blind)
#7C6F22
Tritanopia (blue-blind)
#627367
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5d7918;
/* rgb */ color: rgb(93, 121, 24);
/* oklch */ color: oklch(53.5% 0.124 125.0);
Tailwind
colors: {
  custom: {
    50: '#8e9f5e',
    500: '#5d7918',
    950: '#000000',
  },
}
SCSS
$custom: #5d7918;
$custom-light: #8e9f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#5d7918",
  "rgb": {
    "r": 93,
    "g": 121,
    "b": 24
  },
  "hsl": {
    "h": 77.32,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.53537,
    "c": 0.12382,
    "h": 125
  },
  "luminance": 0.16068
}

Semantic roles & 50–950 ramp

primary
#5D7918
secondary
#5F3FAE
accent
#3EEA70
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E05
muted
#7E7E79

Preview Lab

Preview with #5D7918

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

Preview Lab → · Contrast checker → · Palette generator →

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