#5A7315#5A7315

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

Color values

HEX#5A7315
RGBrgb(90, 115, 21)
HSLhsl(76, 69%, 27%)
HSVhsv(76, 82%, 45%)
CMYKcmyk(21.7%, 0%, 81.7%, 54.9%)
CIE-LABlab(44.93, -22.83, 44.95)
CIE-LCHlch(44.93, 50.42, 116.93°)
OKLaboklab(51.75% -0.0668 0.0988)
OKLCHoklch(51.75% 0.119 124.1)
XYZxyz(10.4827, 14.4892, 2.9538)
Luminance0.1449 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7315 #2E1573
analogous
#735D15 #5A7315 #2B7315
triadic
#5A7315 #155A73 #73155A
tetradic
#5A7315 #15735D #2E1573 #73152B
square
#5A7315 #15735D #2E1573 #73152B
split-complementary
#5A7315 #152B73 #5D1573
monochromatic
#141A05 #323F0C #5A7315 #83A71E #AAD82A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A7315#FFFFFF#000000##FFFFFF
##5A73151.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: #5a7315;
/* rgb */ color: rgb(90, 115, 21);
/* oklch */ color: oklch(51.7% 0.119 124.1);
Tailwind
colors: {
  custom: {
    50: '#8c9b5c',
    500: '#5a7315',
    950: '#000000',
  },
}
SCSS
$custom: #5a7315;
$custom-light: #8c9b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7315",
  "rgb": {
    "r": 90,
    "g": 115,
    "b": 21
  },
  "hsl": {
    "h": 75.957,
    "s": 69.118,
    "l": 26.667
  },
  "oklch": {
    "l": 0.51748,
    "c": 0.11922,
    "h": 124.1
  },
  "luminance": 0.14489
}

Semantic roles & 50–950 ramp

primary
#5A7315
secondary
#583BA9
accent
#3CEC6B
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5A7315

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

Preview Lab → · Contrast checker → · Palette generator →

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