#5A9D1B#5A9D1B

#5A9D1B is a light, vivid yellow-green. Relative luminance 0.264; OKLCH L 62.7% C 0.169 H 134.0°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#5A9D1B
RGBrgb(90, 157, 27)
HSLhsl(91, 71%, 36%)
HSVhsv(91, 83%, 62%)
CMYKcmyk(42.7%, 0%, 82.8%, 38.4%)
CIE-LABlab(58.38, -41.85, 55.42)
CIE-LCHlch(58.38, 69.45, 127.06°)
OKLaboklab(62.73% -0.1177 0.1218)
OKLCHoklch(62.73% 0.169 134)
XYZxyz(16.4710, 26.3658, 5.2579)
Luminance0.2637 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A9D1B #5E1B9D
analogous
#9B9D1B #5A9D1B #1B9D1D
triadic
#5A9D1B #1B5A9D #9D1B5A
tetradic
#5A9D1B #1B9B9D #5E1B9D #9D1D1B
square
#5A9D1B #1B9B9D #5E1B9D #9D1D1B
split-complementary
#5A9D1B #1D1B9D #9D1B9B
monochromatic
#1E3509 #3C6912 #5A9D1B #78D124 #97E151

Accessibility & contrast

On white

3.35
#5A9D1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.27
#5A9D1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A9D1B
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A9D1B#FFFFFF#000000##000000
##5A9D1B1.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A39000
Deuteranopia (green-blind)
#9A8A2B
Tritanopia (blue-blind)
#599786
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #5a9d1b;
/* rgb */ color: rgb(90, 157, 27);
/* oklch */ color: oklch(62.7% 0.169 134.0);
Tailwind
colors: {
  custom: {
    50: '#8fba64',
    500: '#5a9d1b',
    950: '#000000',
  },
}
SCSS
$custom: #5a9d1b;
$custom-light: #8fba64;
$custom-dark: #000000;
JSON
{
  "hex": "#5a9d1b",
  "rgb": {
    "r": 90,
    "g": 157,
    "b": 27
  },
  "hsl": {
    "h": 90.923,
    "s": 70.652,
    "l": 36.078
  },
  "oklch": {
    "l": 0.62728,
    "c": 0.16943,
    "h": 134
  },
  "luminance": 0.26367
}

Semantic roles & 50–950 ramp

primary
#5A9D1B
secondary
#8C50C4
accent
#3AED97
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1206
muted
#7E817A

Preview Lab

Preview with #5A9D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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