#5A7316#5A7316

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

Color values

HEX#5A7316
RGBrgb(90, 115, 22)
HSLhsl(76, 68%, 27%)
HSVhsv(76, 81%, 45%)
CMYKcmyk(21.7%, 0%, 80.9%, 54.9%)
CIE-LABlab(44.93, -22.78, 44.62)
CIE-LCHlch(44.93, 50.10, 117.05°)
OKLaboklab(51.75% -0.0665 0.0983)
OKLCHoklch(51.75% 0.119 124.1)
XYZxyz(10.4921, 14.4930, 3.0036)
Luminance0.1449 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7316 #2F1673
analogous
#735E16 #5A7316 #2C7316
triadic
#5A7316 #165A73 #73165A
tetradic
#5A7316 #16735E #2F1673 #73162C
square
#5A7316 #16735E #2F1673 #73162C
split-complementary
#5A7316 #162C73 #5E1673
monochromatic
#141A05 #32400C #5A7316 #82A620 #A9D72D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #5a7316;
/* rgb */ color: rgb(90, 115, 22);
/* oklch */ color: oklch(51.8% 0.119 124.1);
Tailwind
colors: {
  custom: {
    50: '#8c9b5c',
    500: '#5a7316',
    950: '#000000',
  },
}
SCSS
$custom: #5a7316;
$custom-light: #8c9b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7316",
  "rgb": {
    "r": 90,
    "g": 115,
    "b": 22
  },
  "hsl": {
    "h": 76.129,
    "s": 67.883,
    "l": 26.863
  },
  "oklch": {
    "l": 0.51754,
    "c": 0.11868,
    "h": 124.1
  },
  "luminance": 0.14493
}

Semantic roles & 50–950 ramp

primary
#5A7316
secondary
#593CA9
accent
#3DEB6C
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5A7316

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

Preview Lab → · Contrast checker → · Palette generator →

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