#5A7E1D#5A7E1D

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

Color values

HEX#5A7E1D
RGBrgb(90, 126, 29)
HSLhsl(82, 63%, 30%)
HSVhsv(82, 77%, 49%)
CMYKcmyk(28.6%, 0%, 77%, 50.6%)
CIE-LABlab(48.49, -27.85, 45.54)
CIE-LCHlch(48.49, 53.38, 121.45°)
OKLaboklab(54.65% -0.0798 0.1014)
OKLCHoklch(54.65% 0.129 128.2)
XYZxyz(11.8991, 17.1838, 3.8520)
Luminance0.1718 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7E1D #411D7E
analogous
#7E711D #5A7E1D #297E1D
triadic
#5A7E1D #1D5A7E #7E1D5A
tetradic
#5A7E1D #1D7E71 #411D7E #7E1D29
square
#5A7E1D #1D7E71 #411D7E #7E1D29
split-complementary
#5A7E1D #1D297E #711D7E
monochromatic
#131B06 #364C12 #5A7E1D #7EB028 #9DD342

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A7E1D#FFFFFF#000000##FFFFFF
##5A7E1D1.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)
#857508
Deuteranopia (green-blind)
#807226
Tritanopia (blue-blind)
#5D786B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5a7e1d;
/* rgb */ color: rgb(90, 126, 29);
/* oklch */ color: oklch(54.7% 0.129 128.2);
Tailwind
colors: {
  custom: {
    50: '#8ca361',
    500: '#5a7e1d',
    950: '#000000',
  },
}
SCSS
$custom: #5a7e1d;
$custom-light: #8ca361;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7e1d",
  "rgb": {
    "r": 90,
    "g": 126,
    "b": 29
  },
  "hsl": {
    "h": 82.268,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.54654,
    "c": 0.12901,
    "h": 128.2
  },
  "luminance": 0.17184
}

Semantic roles & 50–950 ramp

primary
#5A7E1D
secondary
#6D45B1
accent
#42E67F
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #5A7E1D

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

Preview Lab → · Contrast checker → · Palette generator →

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