#5E7312#5E7312

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

Color values

HEX#5E7312
RGBrgb(94, 115, 18)
HSLhsl(73, 73%, 26%)
HSVhsv(73, 84%, 45%)
CMYKcmyk(18.3%, 0%, 84.3%, 54.9%)
CIE-LABlab(45.20, -21.19, 46.24)
CIE-LCHlch(45.20, 50.87, 114.63°)
OKLaboklab(52.04% -0.0628 0.1008)
OKLCHoklch(52.04% 0.119 121.9)
XYZxyz(10.8562, 14.6848, 2.8347)
Luminance0.1469 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E7312 #271273
analogous
#735712 #5E7312 #2D7312
triadic
#5E7312 #125E73 #73125E
tetradic
#5E7312 #127357 #271273 #73122D
square
#5E7312 #127357 #271273 #73122D
split-complementary
#5E7312 #122D73 #571273
monochromatic
#161A04 #333E0A #5E7312 #89A81A #B4DD23

Accessibility & contrast

On white

5.33
#5E7312 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#5E7312 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E7312
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E7312#FFFFFF#000000##FFFFFF
##5E73121.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e7312;
/* rgb */ color: rgb(94, 115, 18);
/* oklch */ color: oklch(52.0% 0.119 121.9);
Tailwind
colors: {
  custom: {
    50: '#8f9b5a',
    500: '#5e7312',
    950: '#000000',
  },
}
SCSS
$custom: #5e7312;
$custom-light: #8f9b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#5e7312",
  "rgb": {
    "r": 94,
    "g": 115,
    "b": 18
  },
  "hsl": {
    "h": 72.99,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.52038,
    "c": 0.11877,
    "h": 121.9
  },
  "luminance": 0.14685
}

Semantic roles & 50–950 ramp

primary
#5E7312
secondary
#5037AA
accent
#38F060
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E04
muted
#7E7E79

Preview Lab

Preview with #5E7312

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

Preview Lab → · Contrast checker → · Palette generator →

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