#5A991F#5A991F

#5A991F is a mid, vivid yellow-green. Relative luminance 0.251; OKLCH L 61.7% C 0.163 H 133.7°. Best body text is #000000 at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#5A991F
RGBrgb(90, 153, 31)
HSLhsl(91, 66%, 36%)
HSVhsv(91, 80%, 60%)
CMYKcmyk(41.2%, 0%, 79.7%, 40%)
CIE-LABlab(57.13, -39.97, 53.07)
CIE-LCHlch(57.13, 66.44, 126.98°)
OKLaboklab(61.71% -0.1124 0.1175)
OKLCHoklch(61.71% 0.163 133.7)
XYZxyz(15.8547, 25.0542, 5.2966)
Luminance0.2505 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A991F #5E1F99
analogous
#97991F #5A991F #1F9921
triadic
#5A991F #1F5A99 #991F5A
tetradic
#5A991F #1F9799 #5E1F99 #99211F
square
#5A991F #1F9799 #5E1F99 #99211F
split-complementary
#5A991F #211F99 #991F97
monochromatic
#1E330A #3C6615 #5A991F #78CC29 #97DD56

Accessibility & contrast

On white

3.49
#5A991F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.01
#5A991F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A991F
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A991F#FFFFFF#000000##000000
##5A991F1.003.496.016.01
#FFFFFF3.491.0021.0021.00
#0000006.0121.001.001.00
##0000006.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9F8C00
Deuteranopia (green-blind)
#97872D
Tritanopia (blue-blind)
#5A9382
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #5a991f;
/* rgb */ color: rgb(90, 153, 31);
/* oklch */ color: oklch(61.7% 0.163 133.7);
Tailwind
colors: {
  custom: {
    50: '#8eb765',
    500: '#5a991f',
    950: '#000000',
  },
}
SCSS
$custom: #5a991f;
$custom-light: #8eb765;
$custom-dark: #000000;
JSON
{
  "hex": "#5a991f",
  "rgb": {
    "r": 90,
    "g": 153,
    "b": 31
  },
  "hsl": {
    "h": 90.984,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.61706,
    "c": 0.16264,
    "h": 133.7
  },
  "luminance": 0.25055
}

Semantic roles & 50–950 ramp

primary
#5A991F
secondary
#8C54C0
accent
#3FE997
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5A991F

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

Preview Lab → · Contrast checker → · Palette generator →

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