#5A7312#5A7312

#5A7312 is a mid, vivid yellow-green. Relative luminance 0.145; OKLCH L 51.7% C 0.121 H 123.9°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#5A7312
RGBrgb(90, 115, 18)
HSLhsl(75, 73%, 26%)
HSVhsv(75, 84%, 45%)
CMYKcmyk(21.7%, 0%, 84.3%, 54.9%)
CIE-LABlab(44.91, -22.97, 45.88)
CIE-LCHlch(44.91, 51.30, 116.60°)
OKLaboklab(51.73% -0.0674 0.1002)
OKLCHoklch(51.73% 0.121 123.9)
XYZxyz(10.4565, 14.4787, 2.8159)
Luminance0.1448 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7312 #2B1273
analogous
#735B12 #5A7312 #297312
triadic
#5A7312 #125A73 #73125A
tetradic
#5A7312 #12735B #2B1273 #731229
square
#5A7312 #12735B #2B1273 #731229
split-complementary
#5A7312 #122973 #5B1273
monochromatic
#151A04 #313E0A #5A7312 #83A81A #ADDD23

Accessibility & contrast

On white

5.39
#5A7312 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#5A7312 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7312
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7312#FFFFFF#000000##FFFFFF
##5A73121.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B00
Deuteranopia (green-blind)
#776A1D
Tritanopia (blue-blind)
#5F6D62
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5a7312;
/* rgb */ color: rgb(90, 115, 18);
/* oklch */ color: oklch(51.7% 0.121 123.9);
Tailwind
colors: {
  custom: {
    50: '#8c9b5a',
    500: '#5a7312',
    950: '#000000',
  },
}
SCSS
$custom: #5a7312;
$custom-light: #8c9b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7312",
  "rgb": {
    "r": 90,
    "g": 115,
    "b": 18
  },
  "hsl": {
    "h": 75.464,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.51732,
    "c": 0.12073,
    "h": 123.9
  },
  "luminance": 0.14479
}

Semantic roles & 50–950 ramp

primary
#5A7312
secondary
#5537AA
accent
#38F067
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5A7312

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

Preview Lab → · Contrast checker → · Palette generator →

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