#5A7B1A#5A7B1A

#5A7B1A is a mid, vivid yellow-green. Relative luminance 0.164; OKLCH L 53.9% C 0.127 H 127.1°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#5A7B1A
RGBrgb(90, 123, 26)
HSLhsl(80, 65%, 29%)
HSVhsv(80, 79%, 48%)
CMYKcmyk(26.8%, 0%, 78.9%, 51.8%)
CIE-LABlab(47.51, -26.56, 45.67)
CIE-LCHlch(47.51, 52.84, 120.18°)
OKLaboklab(53.85% -0.0765 0.1012)
OKLCHoklch(53.85% 0.127 127.1)
XYZxyz(11.4859, 16.4139, 3.5401)
Luminance0.1641 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7B1A #3B1A7B
analogous
#7B6C1A #5A7B1A #2A7B1A
triadic
#5A7B1A #1A5A7B #7B1A5A
tetradic
#5A7B1A #1A7B6C #3B1A7B #7B1A2A
square
#5A7B1A #1A7B6C #3B1A7B #7B1A2A
split-complementary
#5A7B1A #1A2A7B #6C1A7B
monochromatic
#121905 #35480F #5A7B1A #7FAE25 #A1D53A

Accessibility & contrast

On white

4.90
#5A7B1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#5A7B1A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7B1A
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7B1A#FFFFFF#000000##FFFFFF
##5A7B1A1.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827203
Deuteranopia (green-blind)
#7D7024
Tritanopia (blue-blind)
#5E7569
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5a7b1a;
/* rgb */ color: rgb(90, 123, 26);
/* oklch */ color: oklch(53.9% 0.127 127.1);
Tailwind
colors: {
  custom: {
    50: '#8ca15f',
    500: '#5a7b1a',
    950: '#000000',
  },
}
SCSS
$custom: #5a7b1a;
$custom-light: #8ca15f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7b1a",
  "rgb": {
    "r": 90,
    "g": 123,
    "b": 26
  },
  "hsl": {
    "h": 80.412,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.53854,
    "c": 0.12685,
    "h": 127.1
  },
  "luminance": 0.16414
}

Semantic roles & 50–950 ramp

primary
#5A7B1A
secondary
#6742AF
accent
#40E879
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0C0F05
muted
#7D7E79

Preview Lab

Preview with #5A7B1A

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

Preview Lab → · Contrast checker → · Palette generator →

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