#5D7312#5D7312

#5D7312 is a mid, moderate yellow-green. Relative luminance 0.146; OKLCH L 52.0% C 0.119 H 122.4°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#5D7312
RGBrgb(93, 115, 18)
HSLhsl(74, 73%, 26%)
HSVhsv(74, 84%, 45%)
CMYKcmyk(19.1%, 0%, 84.3%, 54.9%)
CIE-LABlab(45.13, -21.64, 46.15)
CIE-LCHlch(45.13, 50.97, 115.12°)
OKLaboklab(51.96% -0.0639 0.1007)
OKLCHoklch(51.96% 0.119 122.4)
XYZxyz(10.7543, 14.6323, 2.8299)
Luminance0.1463 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D7312 #281273
analogous
#735812 #5D7312 #2C7312
triadic
#5D7312 #125D73 #73125D
tetradic
#5D7312 #127358 #281273 #73122C
square
#5D7312 #127358 #281273 #73122C
split-complementary
#5D7312 #122C73 #581273
monochromatic
#151A04 #323E0A #5D7312 #88A81A #B2DD23

Accessibility & contrast

On white

5.35
#5D7312 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#5D7312 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D7312
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D7312#FFFFFF#000000##FFFFFF
##5D73121.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B00
Deuteranopia (green-blind)
#786B1C
Tritanopia (blue-blind)
#626D62
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5d7312;
/* rgb */ color: rgb(93, 115, 18);
/* oklch */ color: oklch(52.0% 0.119 122.4);
Tailwind
colors: {
  custom: {
    50: '#8e9b5a',
    500: '#5d7312',
    950: '#000000',
  },
}
SCSS
$custom: #5d7312;
$custom-light: #8e9b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#5d7312",
  "rgb": {
    "r": 93,
    "g": 115,
    "b": 18
  },
  "hsl": {
    "h": 73.608,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.5196,
    "c": 0.11925,
    "h": 122.4
  },
  "luminance": 0.14632
}

Semantic roles & 50–950 ramp

primary
#5D7312
secondary
#5137AA
accent
#38F062
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E04
muted
#7E7E79

Preview Lab

Preview with #5D7312

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

Preview Lab → · Contrast checker → · Palette generator →

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