#5A7019#5A7019

#5A7019 is a mid, moderate yellow-green. Relative luminance 0.138; OKLCH L 51.0% C 0.113 H 123.1°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#5A7019
RGBrgb(90, 112, 25)
HSLhsl(75, 64%, 27%)
HSVhsv(75, 78%, 44%)
CMYKcmyk(19.6%, 0%, 77.7%, 56.1%)
CIE-LABlab(43.99, -21.08, 42.67)
CIE-LCHlch(43.99, 47.60, 116.29°)
OKLaboklab(51% -0.0616 0.0947)
OKLCHoklch(51% 0.113 123.1)
XYZxyz(10.1862, 13.8321, 3.0527)
Luminance0.1383 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7019 #2F1970
analogous
#705B19 #5A7019 #2F7019
triadic
#5A7019 #195A70 #70195A
tetradic
#5A7019 #19705B #2F1970 #70192F
square
#5A7019 #19705B #2F1970 #70192F
split-complementary
#5A7019 #192F70 #5B1970
monochromatic
#141906 #323E0E #5A7019 #82A224 #A9D132

Accessibility & contrast

On white

5.58
#5A7019 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#5A7019 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7019
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7019#FFFFFF#000000##FFFFFF
##5A70191.005.583.775.58
#FFFFFF5.581.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776907
Deuteranopia (green-blind)
#746821
Tritanopia (blue-blind)
#5F6A5F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5a7019;
/* rgb */ color: rgb(90, 112, 25);
/* oklch */ color: oklch(51.0% 0.113 123.1);
Tailwind
colors: {
  custom: {
    50: '#8c995d',
    500: '#5a7019',
    950: '#000000',
  },
}
SCSS
$custom: #5a7019;
$custom-light: #8c995d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7019",
  "rgb": {
    "r": 90,
    "g": 112,
    "b": 25
  },
  "hsl": {
    "h": 75.172,
    "s": 63.504,
    "l": 26.863
  },
  "oklch": {
    "l": 0.50999,
    "c": 0.11299,
    "h": 123.1
  },
  "luminance": 0.13832
}

Semantic roles & 50–950 ramp

primary
#5A7019
secondary
#5940A5
accent
#41E76B
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5A7019

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

Preview Lab → · Contrast checker → · Palette generator →

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