#5B951F#5B951F

#5B951F is a mid, vivid yellow-green. Relative luminance 0.238; OKLCH L 60.7% C 0.157 H 132.9°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#5B951F
RGBrgb(91, 149, 31)
HSLhsl(89, 66%, 35%)
HSVhsv(89, 79%, 58%)
CMYKcmyk(38.9%, 0%, 79.2%, 41.6%)
CIE-LABlab(55.90, -37.89, 51.94)
CIE-LCHlch(55.90, 64.29, 126.11°)
OKLaboklab(60.72% -0.1069 0.1151)
OKLCHoklch(60.72% 0.157 132.9)
XYZxyz(15.3089, 23.8173, 5.0866)
Luminance0.2382 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B951F #591F95
analogous
#95941F #5B951F #20951F
triadic
#5B951F #1F5B95 #951F5B
tetradic
#5B951F #1F9594 #591F95 #951F20
square
#5B951F #1F9594 #591F95 #951F20
split-complementary
#5B951F #1F2095 #941F95
monochromatic
#1D300A #3C6214 #5B951F #7AC82A #98DB53

Accessibility & contrast

On white

3.64
#5B951F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#5B951F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B951F
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B951F#FFFFFF#000000##000000
##5B951F1.003.645.765.76
#FFFFFF3.641.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8900
Deuteranopia (green-blind)
#94842C
Tritanopia (blue-blind)
#5C8F7F
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #5b951f;
/* rgb */ color: rgb(91, 149, 31);
/* oklch */ color: oklch(60.7% 0.157 132.9);
Tailwind
colors: {
  custom: {
    50: '#8fb465',
    500: '#5b951f',
    950: '#000000',
  },
}
SCSS
$custom: #5b951f;
$custom-light: #8fb465;
$custom-dark: #000000;
JSON
{
  "hex": "#5b951f",
  "rgb": {
    "r": 91,
    "g": 149,
    "b": 31
  },
  "hsl": {
    "h": 89.492,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.60718,
    "c": 0.1571,
    "h": 132.9
  },
  "luminance": 0.23818
}

Semantic roles & 50–950 ramp

primary
#5B951F
secondary
#8751BF
accent
#3FE992
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5B951F

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

Preview Lab → · Contrast checker → · Palette generator →

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