#5B9D1F#5B9D1F

#5B9D1F is a light, vivid yellow-green. Relative luminance 0.264; OKLCH L 62.8% C 0.167 H 134.0°. Best body text is #000000 at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#5B9D1F
RGBrgb(91, 157, 31)
HSLhsl(91, 67%, 37%)
HSVhsv(91, 80%, 62%)
CMYKcmyk(42%, 0%, 80.3%, 38.4%)
CIE-LABlab(58.45, -41.31, 54.32)
CIE-LCHlch(58.45, 68.25, 127.25°)
OKLaboklab(62.8% -0.1161 0.1201)
OKLCHoklch(62.8% 0.167 134)
XYZxyz(16.6184, 26.4361, 5.5231)
Luminance0.2644 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B9D1F #611F9D
analogous
#9A9D1F #5B9D1F #1F9D22
triadic
#5B9D1F #1F5B9D #9D1F5B
tetradic
#5B9D1F #1F9A9D #611F9D #9D221F
square
#5B9D1F #1F9A9D #611F9D #9D221F
split-complementary
#5B9D1F #221F9D #9D1F9A
monochromatic
#20370B #3D6A15 #5B9D1F #79D029 #98DE58

Accessibility & contrast

On white

3.34
#5B9D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.29
#5B9D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B9D1F
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B9D1F#FFFFFF#000000##000000
##5B9D1F1.003.346.296.29
#FFFFFF3.341.0021.0021.00
#0000006.2921.001.001.00
##0000006.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#A39000
Deuteranopia (green-blind)
#9B8B2D
Tritanopia (blue-blind)
#5A9786
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #5b9d1f;
/* rgb */ color: rgb(91, 157, 31);
/* oklch */ color: oklch(62.8% 0.167 134.0);
Tailwind
colors: {
  custom: {
    50: '#8fba66',
    500: '#5b9d1f',
    950: '#000000',
  },
}
SCSS
$custom: #5b9d1f;
$custom-light: #8fba66;
$custom-dark: #000000;
JSON
{
  "hex": "#5b9d1f",
  "rgb": {
    "r": 91,
    "g": 157,
    "b": 31
  },
  "hsl": {
    "h": 91.429,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.62801,
    "c": 0.16706,
    "h": 134
  },
  "luminance": 0.26437
}

Semantic roles & 50–950 ramp

primary
#5B9D1F
secondary
#8E56C2
accent
#3EEA98
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1206
muted
#7E817A

Preview Lab

Preview with #5B9D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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