#5A9D2D#5A9D2D

#5A9D2D is a light, vivid yellow-green. Relative luminance 0.265; OKLCH L 62.8% C 0.160 H 135.4°. Best body text is #000000 at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#5A9D2D
RGBrgb(90, 157, 45)
HSLhsl(96, 55%, 40%)
HSVhsv(96, 71%, 62%)
CMYKcmyk(42.7%, 0%, 71.3%, 38.4%)
CIE-LABlab(58.49, -40.75, 49.43)
CIE-LCHlch(58.49, 64.06, 129.51°)
OKLaboklab(62.85% -0.1136 0.112)
OKLCHoklch(62.85% 0.16 135.4)
XYZxyz(16.7467, 26.4761, 6.7101)
Luminance0.2648 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A9D2D #702D9D
analogous
#929D2D #5A9D2D #2D9D38
triadic
#5A9D2D #2D5A9D #9D2D5A
tetradic
#5A9D2D #2D929D #702D9D #9D382D
square
#5A9D2D #2D929D #702D9D #9D382D
split-complementary
#5A9D2D #382D9D #9D2D92
monochromatic
#233E12 #3F6D1F #5A9D2D #76C83F #98D66F

Accessibility & contrast

On white

3.34
#5A9D2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.30
#5A9D2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A9D2D
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A9D2D#FFFFFF#000000##000000
##5A9D2D1.003.346.306.30
#FFFFFF3.341.0021.0021.00
#0000006.3021.001.001.00
##0000006.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#A3901B
Deuteranopia (green-blind)
#9A8B37
Tritanopia (blue-blind)
#589787
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #5a9d2d;
/* rgb */ color: rgb(90, 157, 45);
/* oklch */ color: oklch(62.8% 0.160 135.4);
Tailwind
colors: {
  custom: {
    50: '#8eba6d',
    500: '#5a9d2d',
    950: '#000000',
  },
}
SCSS
$custom: #5a9d2d;
$custom-light: #8eba6d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a9d2d",
  "rgb": {
    "r": 90,
    "g": 157,
    "b": 45
  },
  "hsl": {
    "h": 95.893,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.62846,
    "c": 0.1595,
    "h": 135.4
  },
  "luminance": 0.26477
}

Semantic roles & 50–950 ramp

primary
#5A9D2D
secondary
#9B69BD
accent
#49DFA3
background
#F9FBF6
surface
#F1F6EC
border
#CBD0C7
text
#0D1207
muted
#7E817A

Preview Lab

Preview with #5A9D2D

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

Preview Lab → · Contrast checker → · Palette generator →

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