#5A981F#5A981F

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

Color values

HEX#5A981F
RGBrgb(90, 152, 31)
HSLhsl(91, 66%, 36%)
HSVhsv(91, 80%, 60%)
CMYKcmyk(40.8%, 0%, 79.6%, 40.4%)
CIE-LABlab(56.81, -39.54, 52.78)
CIE-LCHlch(56.81, 65.95, 126.84°)
OKLaboklab(61.45% -0.1113 0.1169)
OKLCHoklch(61.45% 0.161 133.6)
XYZxyz(15.6917, 24.7283, 5.2423)
Luminance0.2473 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A981F #5D1F98
analogous
#96981F #5A981F #1F9821
triadic
#5A981F #1F5A98 #981F5A
tetradic
#5A981F #1F9698 #5D1F98 #98211F
square
#5A981F #1F9698 #5D1F98 #98211F
split-complementary
#5A981F #211F98 #981F96
monochromatic
#1E320A #3C6515 #5A981F #78CB29 #97DC55

Accessibility & contrast

On white

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

On black

5.95
#5A981F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A981F
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A981F#FFFFFF#000000##000000
##5A981F1.003.535.955.95
#FFFFFF3.531.0021.0021.00
#0000005.9521.001.001.00
##0000005.9521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a981f;
/* rgb */ color: rgb(90, 152, 31);
/* oklch */ color: oklch(61.4% 0.161 133.6);
Tailwind
colors: {
  custom: {
    50: '#8eb765',
    500: '#5a981f',
    950: '#000000',
  },
}
SCSS
$custom: #5a981f;
$custom-light: #8eb765;
$custom-dark: #000000;
JSON
{
  "hex": "#5a981f",
  "rgb": {
    "r": 90,
    "g": 152,
    "b": 31
  },
  "hsl": {
    "h": 90.744,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.61445,
    "c": 0.1614,
    "h": 133.6
  },
  "luminance": 0.24729
}

Semantic roles & 50–950 ramp

primary
#5A981F
secondary
#8B53C0
accent
#3FE996
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5A981F

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

Preview Lab → · Contrast checker → · Palette generator →

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