#5A8D27#5A8D27

#5A8D27 is a mid, vivid yellow-green. Relative luminance 0.214; OKLCH L 58.6% C 0.142 H 132.5°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#5A8D27
RGBrgb(90, 141, 39)
HSLhsl(90, 57%, 35%)
HSVhsv(90, 72%, 55%)
CMYKcmyk(36.2%, 0%, 72.3%, 44.7%)
CIE-LABlab(53.35, -34.20, 46.54)
CIE-LCHlch(53.35, 57.76, 126.31°)
OKLaboklab(58.63% -0.0962 0.1051)
OKLCHoklch(58.63% 0.142 132.5)
XYZxyz(14.1073, 21.3693, 5.3004)
Luminance0.2137 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8D27 #5A278D
analogous
#8D8D27 #5A8D27 #278D27
triadic
#5A8D27 #275A8D #8D275A
tetradic
#5A8D27 #278D8D #5A278D #8D2727
square
#5A8D27 #278D8D #5A278D #8D2727
split-complementary
#5A8D27 #27278D #8D278D
monochromatic
#1D2D0C #3B5D1A #5A8D27 #79BD34 #97D25C

Accessibility & contrast

On white

3.98
#5A8D27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#5A8D27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8D27
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8D27#FFFFFF#000000##000000
##5A8D271.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#938216
Deuteranopia (green-blind)
#8C7E30
Tritanopia (blue-blind)
#5B8779
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5a8d27;
/* rgb */ color: rgb(90, 141, 39);
/* oklch */ color: oklch(58.6% 0.142 132.5);
Tailwind
colors: {
  custom: {
    50: '#8dae68',
    500: '#5a8d27',
    950: '#000000',
  },
}
SCSS
$custom: #5a8d27;
$custom-light: #8dae68;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8d27",
  "rgb": {
    "r": 90,
    "g": 141,
    "b": 39
  },
  "hsl": {
    "h": 90,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.58633,
    "c": 0.14249,
    "h": 132.5
  },
  "luminance": 0.2137
}

Semantic roles & 50–950 ramp

primary
#5A8D27
secondary
#8859B7
accent
#48E094
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D1006
muted
#7D7F7A

Preview Lab

Preview with #5A8D27

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

Preview Lab → · Contrast checker → · Palette generator →

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