#5A7E1E#5A7E1E

#5A7E1E is a mid, vivid yellow-green. Relative luminance 0.172; OKLCH L 54.7% C 0.128 H 128.3°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#5A7E1E
RGBrgb(90, 126, 30)
HSLhsl(83, 62%, 31%)
HSVhsv(83, 76%, 49%)
CMYKcmyk(28.6%, 0%, 76.2%, 50.6%)
CIE-LABlab(48.50, -27.79, 45.17)
CIE-LCHlch(48.50, 53.04, 121.60°)
OKLaboklab(54.66% -0.0795 0.1008)
OKLCHoklch(54.66% 0.128 128.3)
XYZxyz(11.9116, 17.1888, 3.9182)
Luminance0.1719 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7E1E #421E7E
analogous
#7E721E #5A7E1E #2A7E1E
triadic
#5A7E1E #1E5A7E #7E1E5A
tetradic
#5A7E1E #1E7E72 #421E7E #7E1E2A
square
#5A7E1E #1E7E72 #421E7E #7E1E2A
split-complementary
#5A7E1E #1E2A7E #721E7E
monochromatic
#131B06 #374D12 #5A7E1E #7DAF2A #9DD244

Accessibility & contrast

On white

4.73
#5A7E1E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#5A7E1E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7E1E
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7E1E#FFFFFF#000000##FFFFFF
##5A7E1E1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#84750B
Deuteranopia (green-blind)
#807227
Tritanopia (blue-blind)
#5D786C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5a7e1e;
/* rgb */ color: rgb(90, 126, 30);
/* oklch */ color: oklch(54.7% 0.128 128.3);
Tailwind
colors: {
  custom: {
    50: '#8ca361',
    500: '#5a7e1e',
    950: '#000000',
  },
}
SCSS
$custom: #5a7e1e;
$custom-light: #8ca361;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7e1e",
  "rgb": {
    "r": 90,
    "g": 126,
    "b": 30
  },
  "hsl": {
    "h": 82.5,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.54661,
    "c": 0.12839,
    "h": 128.3
  },
  "luminance": 0.17189
}

Semantic roles & 50–950 ramp

primary
#5A7E1E
secondary
#6F47B1
accent
#43E580
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F05
muted
#7D7F7A

Preview Lab

Preview with #5A7E1E

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

Preview Lab → · Contrast checker → · Palette generator →

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