#5A981D#5A981D

#5A981D is a mid, vivid yellow-green. Relative luminance 0.247; OKLCH L 61.4% C 0.162 H 133.5°. Best body text is #000000 at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#5A981D
RGBrgb(90, 152, 29)
HSLhsl(90, 68%, 35%)
HSVhsv(90, 81%, 60%)
CMYKcmyk(40.8%, 0%, 80.9%, 40.4%)
CIE-LABlab(56.80, -39.65, 53.39)
CIE-LCHlch(56.80, 66.50, 126.60°)
OKLaboklab(61.43% -0.1117 0.1179)
OKLCHoklch(61.43% 0.162 133.5)
XYZxyz(15.6662, 24.7181, 5.1078)
Luminance0.2472 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A981D #5B1D98
analogous
#97981D #5A981D #1D981D
triadic
#5A981D #1D5A98 #981D5A
tetradic
#5A981D #1D9798 #5B1D98 #981D1D
square
#5A981D #1D9798 #5B1D98 #981D1D
split-complementary
#5A981D #1D1D98 #981D97
monochromatic
#1D3109 #3C6513 #5A981D #78CB27 #97DE52

Accessibility & contrast

On white

3.53
#5A981D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.94
#5A981D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A981D
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A981D#FFFFFF#000000##000000
##5A981D1.003.535.945.94
#FFFFFF3.531.0021.0021.00
#0000005.9421.001.001.00
##0000005.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#9E8B00
Deuteranopia (green-blind)
#96872B
Tritanopia (blue-blind)
#5A9281
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #5a981d;
/* rgb */ color: rgb(90, 152, 29);
/* oklch */ color: oklch(61.4% 0.162 133.5);
Tailwind
colors: {
  custom: {
    50: '#8eb764',
    500: '#5a981d',
    950: '#000000',
  },
}
SCSS
$custom: #5a981d;
$custom-light: #8eb764;
$custom-dark: #000000;
JSON
{
  "hex": "#5a981d",
  "rgb": {
    "r": 90,
    "g": 152,
    "b": 29
  },
  "hsl": {
    "h": 90.244,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.61434,
    "c": 0.16238,
    "h": 133.5
  },
  "luminance": 0.24719
}

Semantic roles & 50–950 ramp

primary
#5A981D
secondary
#8950C1
accent
#3DEB95
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5A981D

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

Preview Lab → · Contrast checker → · Palette generator →

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