#5D7818#5D7818

#5D7818 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#5D7818
RGBrgb(93, 120, 24)
HSLhsl(77, 67%, 28%)
HSVhsv(77, 80%, 47%)
CMYKcmyk(22.5%, 0%, 80%, 52.9%)
CIE-LABlab(46.75, -23.90, 45.71)
CIE-LCHlch(46.75, 51.58, 117.61°)
OKLaboklab(53.28% -0.0696 0.1008)
OKLCHoklch(53.28% 0.123 124.6)
XYZxyz(11.3957, 15.8259, 3.3183)
Luminance0.1583 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D7818 #331878
analogous
#786318 #5D7818 #2D7818
triadic
#5D7818 #185D78 #78185D
tetradic
#5D7818 #187863 #331878 #78182D
square
#5D7818 #187863 #331878 #78182D
split-complementary
#5D7818 #182D78 #631878
monochromatic
#141A05 #35450E #5D7818 #85AB22 #A9D634

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5D7818#FFFFFF#000000##FFFFFF
##5D78181.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d7818;
/* rgb */ color: rgb(93, 120, 24);
/* oklch */ color: oklch(53.3% 0.123 124.6);
Tailwind
colors: {
  custom: {
    50: '#8e9f5e',
    500: '#5d7818',
    950: '#000000',
  },
}
SCSS
$custom: #5d7818;
$custom-light: #8e9f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#5d7818",
  "rgb": {
    "r": 93,
    "g": 120,
    "b": 24
  },
  "hsl": {
    "h": 76.875,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.5328,
    "c": 0.12252,
    "h": 124.6
  },
  "luminance": 0.15826
}

Semantic roles & 50–950 ramp

primary
#5D7818
secondary
#5E3FAD
accent
#3EEA6E
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E05
muted
#7E7E79

Preview Lab

Preview with #5D7818

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

Preview Lab → · Contrast checker → · Palette generator →

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