#5A7314#5A7314

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

Color values

HEX#5A7314
RGBrgb(90, 115, 20)
HSLhsl(76, 70%, 26%)
HSVhsv(76, 83%, 45%)
CMYKcmyk(21.7%, 0%, 82.6%, 54.9%)
CIE-LABlab(44.92, -22.88, 45.27)
CIE-LCHlch(44.92, 50.72, 116.81°)
OKLaboklab(51.74% -0.067 0.0993)
OKLCHoklch(51.74% 0.12 124)
XYZxyz(10.4736, 14.4855, 2.9059)
Luminance0.1449 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7314 #2D1473
analogous
#735D14 #5A7314 #2B7314
triadic
#5A7314 #145A73 #73145A
tetradic
#5A7314 #14735D #2D1473 #73142B
square
#5A7314 #14735D #2D1473 #73142B
split-complementary
#5A7314 #142B73 #5D1473
monochromatic
#141A05 #313F0B #5A7314 #83A71D #ABDA28

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A7314#FFFFFF#000000##FFFFFF
##5A73141.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)
#776A1E
Tritanopia (blue-blind)
#5F6D62
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5a7314;
/* rgb */ color: rgb(90, 115, 20);
/* oklch */ color: oklch(51.7% 0.120 124.0);
Tailwind
colors: {
  custom: {
    50: '#8c9b5b',
    500: '#5a7314',
    950: '#000000',
  },
}
SCSS
$custom: #5a7314;
$custom-light: #8c9b5b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7314",
  "rgb": {
    "r": 90,
    "g": 115,
    "b": 20
  },
  "hsl": {
    "h": 75.789,
    "s": 70.37,
    "l": 26.471
  },
  "oklch": {
    "l": 0.51742,
    "c": 0.11974,
    "h": 124
  },
  "luminance": 0.14486
}

Semantic roles & 50–950 ramp

primary
#5A7314
secondary
#573AA9
accent
#3BED6A
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5A7314

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

Preview Lab → · Contrast checker → · Palette generator →

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