#5A7519#5A7519

#5A7519 is a mid, moderate yellow-green. Relative luminance 0.150; OKLCH L 52.3% C 0.120 H 125.0°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#5A7519
RGBrgb(90, 117, 25)
HSLhsl(78, 65%, 28%)
HSVhsv(78, 79%, 46%)
CMYKcmyk(23.1%, 0%, 78.6%, 54.1%)
CIE-LABlab(45.59, -23.64, 44.20)
CIE-LCHlch(45.59, 50.12, 118.14°)
OKLaboklab(52.29% -0.0686 0.0979)
OKLCHoklch(52.29% 0.12 125)
XYZxyz(10.7533, 14.9663, 3.2418)
Luminance0.1497 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7519 #341975
analogous
#756219 #5A7519 #2C7519
triadic
#5A7519 #195A75 #75195A
tetradic
#5A7519 #197562 #341975 #75192C
square
#5A7519 #197562 #341975 #75192C
split-complementary
#5A7519 #192C75 #621975
monochromatic
#131905 #33430E #5A7519 #81A724 #A5D435

Accessibility & contrast

On white

5.26
#5A7519 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#5A7519 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7519
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7519#FFFFFF#000000##FFFFFF
##5A75191.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D04
Deuteranopia (green-blind)
#786C22
Tritanopia (blue-blind)
#5E6F64
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5a7519;
/* rgb */ color: rgb(90, 117, 25);
/* oklch */ color: oklch(52.3% 0.120 125.0);
Tailwind
colors: {
  custom: {
    50: '#8c9c5e',
    500: '#5a7519',
    950: '#000000',
  },
}
SCSS
$custom: #5a7519;
$custom-light: #8c9c5e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7519",
  "rgb": {
    "r": 90,
    "g": 117,
    "b": 25
  },
  "hsl": {
    "h": 77.609,
    "s": 64.789,
    "l": 27.843
  },
  "oklch": {
    "l": 0.52291,
    "c": 0.11956,
    "h": 125
  },
  "luminance": 0.14966
}

Semantic roles & 50–950 ramp

primary
#5A7519
secondary
#5F40AA
accent
#40E871
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5A7519

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

Preview Lab → · Contrast checker → · Palette generator →

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