#5B9A1F#5B9A1F

#5B9A1F is a light, vivid yellow-green. Relative luminance 0.254; OKLCH L 62.0% C 0.163 H 133.6°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#5B9A1F
RGBrgb(91, 154, 31)
HSLhsl(91, 66%, 36%)
HSVhsv(91, 80%, 60%)
CMYKcmyk(40.9%, 0%, 79.9%, 39.6%)
CIE-LABlab(57.50, -40.04, 53.44)
CIE-LCHlch(57.50, 66.77, 126.85°)
OKLaboklab(62.02% -0.1127 0.1183)
OKLCHoklch(62.02% 0.163 133.6)
XYZxyz(16.1170, 25.4335, 5.3560)
Luminance0.2543 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B9A1F #5E1F9A
analogous
#999A1F #5B9A1F #1F9A21
triadic
#5B9A1F #1F5B9A #9A1F5B
tetradic
#5B9A1F #1F999A #5E1F9A #9A211F
square
#5B9A1F #1F999A #5E1F9A #9A211F
split-complementary
#5B9A1F #211F9A #9A1F99
monochromatic
#1F340A #3D6715 #5B9A1F #79CD29 #98DD56

Accessibility & contrast

On white

3.45
#5B9A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.09
#5B9A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B9A1F
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B9A1F#FFFFFF#000000##000000
##5B9A1F1.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#A08D00
Deuteranopia (green-blind)
#98882D
Tritanopia (blue-blind)
#5B9483
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #5b9a1f;
/* rgb */ color: rgb(91, 154, 31);
/* oklch */ color: oklch(62.0% 0.163 133.6);
Tailwind
colors: {
  custom: {
    50: '#8fb866',
    500: '#5b9a1f',
    950: '#000000',
  },
}
SCSS
$custom: #5b9a1f;
$custom-light: #8fb866;
$custom-dark: #000000;
JSON
{
  "hex": "#5b9a1f",
  "rgb": {
    "r": 91,
    "g": 154,
    "b": 31
  },
  "hsl": {
    "h": 90.732,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.6202,
    "c": 0.16335,
    "h": 133.6
  },
  "luminance": 0.25434
}

Semantic roles & 50–950 ramp

primary
#5B9A1F
secondary
#8C54C1
accent
#3EE996
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5B9A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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