#5B9C1F#5B9C1F

#5B9C1F is a light, vivid yellow-green. Relative luminance 0.261; OKLCH L 62.5% C 0.166 H 133.9°. Best body text is #000000 at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#5B9C1F
RGBrgb(91, 156, 31)
HSLhsl(91, 67%, 37%)
HSVhsv(91, 80%, 61%)
CMYKcmyk(41.7%, 0%, 80.1%, 38.8%)
CIE-LABlab(58.13, -40.89, 54.03)
CIE-LCHlch(58.13, 67.76, 127.12°)
OKLaboklab(62.54% -0.115 0.1195)
OKLCHoklch(62.54% 0.166 133.9)
XYZxyz(16.4499, 26.0991, 5.4669)
Luminance0.2610 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B9C1F #601F9C
analogous
#9A9C1F #5B9C1F #1F9C22
triadic
#5B9C1F #1F5B9C #9C1F5B
tetradic
#5B9C1F #1F9A9C #601F9C #9C221F
square
#5B9C1F #1F9A9C #601F9C #9C221F
split-complementary
#5B9C1F #221F9C #9C1F9A
monochromatic
#1F360B #3D6915 #5B9C1F #79CF29 #98DE58

Accessibility & contrast

On white

3.38
#5B9C1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.22
#5B9C1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B9C1F
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B9C1F#FFFFFF#000000##000000
##5B9C1F1.003.386.226.22
#FFFFFF3.381.0021.0021.00
#0000006.2221.001.001.00
##0000006.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#A28F00
Deuteranopia (green-blind)
#9A8A2D
Tritanopia (blue-blind)
#5A9685
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #5b9c1f;
/* rgb */ color: rgb(91, 156, 31);
/* oklch */ color: oklch(62.5% 0.166 133.9);
Tailwind
colors: {
  custom: {
    50: '#8fba66',
    500: '#5b9c1f',
    950: '#000000',
  },
}
SCSS
$custom: #5b9c1f;
$custom-light: #8fba66;
$custom-dark: #000000;
JSON
{
  "hex": "#5b9c1f",
  "rgb": {
    "r": 91,
    "g": 156,
    "b": 31
  },
  "hsl": {
    "h": 91.2,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.6254,
    "c": 0.16583,
    "h": 133.9
  },
  "luminance": 0.261
}

Semantic roles & 50–950 ramp

primary
#5B9C1F
secondary
#8E55C1
accent
#3EEA97
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5B9C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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