#5D8312#5D8312

#5D8312 is a mid, vivid yellow-green. Relative luminance 0.186; OKLCH L 56.1% C 0.139 H 127.8°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#5D8312
RGBrgb(93, 131, 18)
HSLhsl(80, 76%, 29%)
HSVhsv(80, 86%, 51%)
CMYKcmyk(29%, 0%, 86.3%, 48.6%)
CIE-LABlab(50.22, -29.55, 50.63)
CIE-LCHlch(50.22, 58.62, 120.27°)
OKLaboklab(56.09% -0.0853 0.1102)
OKLCHoklch(56.09% 0.139 127.8)
XYZxyz(12.7397, 18.6031, 3.4917)
Luminance0.1860 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D8312 #381283
analogous
#837112 #5D8312 #258312
triadic
#5D8312 #125D83 #83125D
tetradic
#5D8312 #128371 #381283 #831225
square
#5D8312 #128371 #381283 #831225
split-complementary
#5D8312 #122583 #711283
monochromatic
#131B04 #374D0B #5D8312 #83B919 #A5E22D

Accessibility & contrast

On white

4.45
#5D8312 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#5D8312 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5D8312
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D8312#FFFFFF#000000##000000
##5D83121.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7900
Deuteranopia (green-blind)
#857720
Tritanopia (blue-blind)
#617D6F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5d8312;
/* rgb */ color: rgb(93, 131, 18);
/* oklch */ color: oklch(56.1% 0.139 127.8);
Tailwind
colors: {
  custom: {
    50: '#8fa75d',
    500: '#5d8312',
    950: '#000000',
  },
}
SCSS
$custom: #5d8312;
$custom-light: #8fa75d;
$custom-dark: #000000;
JSON
{
  "hex": "#5d8312",
  "rgb": {
    "r": 93,
    "g": 131,
    "b": 18
  },
  "hsl": {
    "h": 80.177,
    "s": 75.839,
    "l": 29.216
  },
  "oklch": {
    "l": 0.56091,
    "c": 0.1394,
    "h": 127.8
  },
  "luminance": 0.18603
}

Semantic roles & 50–950 ramp

primary
#5D8312
secondary
#6338B8
accent
#35F275
background
#F9FAF5
surface
#F1F4E9
border
#CBCEC5
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5D8312

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

Preview Lab → · Contrast checker → · Palette generator →

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