#5A7E1F#5A7E1F

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

Color values

HEX#5A7E1F
RGBrgb(90, 126, 31)
HSLhsl(83, 61%, 31%)
HSVhsv(83, 75%, 49%)
CMYKcmyk(28.6%, 0%, 75.4%, 50.6%)
CIE-LABlab(48.50, -27.73, 44.80)
CIE-LCHlch(48.50, 52.69, 121.75°)
OKLaboklab(54.67% -0.0793 0.1002)
OKLCHoklch(54.67% 0.128 128.4)
XYZxyz(11.9246, 17.1940, 3.9866)
Luminance0.1719 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7E1F #431F7E
analogous
#7E721F #5A7E1F #2A7E1F
triadic
#5A7E1F #1F5A7E #7E1F5A
tetradic
#5A7E1F #1F7E72 #431F7E #7E1F2A
square
#5A7E1F #1F7E72 #431F7E #7E1F2A
split-complementary
#5A7E1F #1F2A7E #721F7E
monochromatic
#141C07 #374D13 #5A7E1F #7DAF2B #9DD146

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A7E1F#FFFFFF#000000##FFFFFF
##5A7E1F1.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)
#84750D
Deuteranopia (green-blind)
#7F7228
Tritanopia (blue-blind)
#5D786C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5a7e1f;
/* rgb */ color: rgb(90, 126, 31);
/* oklch */ color: oklch(54.7% 0.128 128.4);
Tailwind
colors: {
  custom: {
    50: '#8ca362',
    500: '#5a7e1f',
    950: '#000000',
  },
}
SCSS
$custom: #5a7e1f;
$custom-light: #8ca362;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7e1f",
  "rgb": {
    "r": 90,
    "g": 126,
    "b": 31
  },
  "hsl": {
    "h": 82.737,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.54668,
    "c": 0.12776,
    "h": 128.4
  },
  "luminance": 0.17194
}

Semantic roles & 50–950 ramp

primary
#5A7E1F
secondary
#7048B1
accent
#44E481
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F05
muted
#7D7F7A

Preview Lab

Preview with #5A7E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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