#5B951C#5B951C

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

Color values

HEX#5B951C
RGBrgb(91, 149, 28)
HSLhsl(89, 68%, 35%)
HSVhsv(89, 81%, 58%)
CMYKcmyk(38.9%, 0%, 81.2%, 41.6%)
CIE-LABlab(55.89, -38.05, 52.87)
CIE-LCHlch(55.89, 65.13, 125.74°)
OKLaboklab(60.7% -0.1075 0.1166)
OKLCHoklch(60.7% 0.159 132.7)
XYZxyz(15.2712, 23.8022, 4.8880)
Luminance0.2380 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B951C #561C95
analogous
#95931C #5B951C #1F951C
triadic
#5B951C #1C5B95 #951C5B
tetradic
#5B951C #1C9593 #561C95 #951C1F
square
#5B951C #1C9593 #561C95 #951C1F
split-complementary
#5B951C #1C1F95 #931C95
monochromatic
#1C2E09 #3C6112 #5B951C #7AC926 #99DE4E

Accessibility & contrast

On white

3.65
#5B951C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B951C#FFFFFF#000000##000000
##5B951C1.003.655.765.76
#FFFFFF3.651.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b951c;
/* rgb */ color: rgb(91, 149, 28);
/* oklch */ color: oklch(60.7% 0.159 132.7);
Tailwind
colors: {
  custom: {
    50: '#8fb464',
    500: '#5b951c',
    950: '#000000',
  },
}
SCSS
$custom: #5b951c;
$custom-light: #8fb464;
$custom-dark: #000000;
JSON
{
  "hex": "#5b951c",
  "rgb": {
    "r": 91,
    "g": 149,
    "b": 28
  },
  "hsl": {
    "h": 88.76,
    "s": 68.362,
    "l": 34.706
  },
  "oklch": {
    "l": 0.607,
    "c": 0.1586,
    "h": 132.7
  },
  "luminance": 0.23803
}

Semantic roles & 50–950 ramp

primary
#5B951C
secondary
#844DC0
accent
#3DEB90
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5B951C

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

Preview Lab → · Contrast checker → · Palette generator →

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