#5B971C#5B971C

#5B971C is a mid, vivid yellow-green. Relative luminance 0.244; OKLCH L 61.2% C 0.161 H 133.0°. Best body text is #000000 at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#5B971C
RGBrgb(91, 151, 28)
HSLhsl(89, 69%, 35%)
HSVhsv(89, 81%, 59%)
CMYKcmyk(39.7%, 0%, 81.5%, 40.8%)
CIE-LABlab(56.53, -38.91, 53.45)
CIE-LCHlch(56.53, 66.12, 126.05°)
OKLaboklab(61.22% -0.1098 0.1178)
OKLCHoklch(61.22% 0.161 133)
XYZxyz(15.5904, 24.4405, 4.9944)
Luminance0.2444 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B971C #581C97
analogous
#97951C #5B971C #1E971C
triadic
#5B971C #1C5B97 #971C5B
tetradic
#5B971C #1C9795 #581C97 #971C1E
square
#5B971C #1C9795 #581C97 #971C1E
split-complementary
#5B971C #1C1E97 #951C97
monochromatic
#1D3009 #3C6312 #5B971C #7ACB26 #98DE4F

Accessibility & contrast

On white

3.57
#5B971C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.89
#5B971C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B971C
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B971C#FFFFFF#000000##000000
##5B971C1.003.575.895.89
#FFFFFF3.571.0021.0021.00
#0000005.8921.001.001.00
##0000005.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8B00
Deuteranopia (green-blind)
#95862A
Tritanopia (blue-blind)
#5B9181
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #5b971c;
/* rgb */ color: rgb(91, 151, 28);
/* oklch */ color: oklch(61.2% 0.161 133.0);
Tailwind
colors: {
  custom: {
    50: '#8fb664',
    500: '#5b971c',
    950: '#000000',
  },
}
SCSS
$custom: #5b971c;
$custom-light: #8fb664;
$custom-dark: #000000;
JSON
{
  "hex": "#5b971c",
  "rgb": {
    "r": 91,
    "g": 151,
    "b": 28
  },
  "hsl": {
    "h": 89.268,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.61222,
    "c": 0.16109,
    "h": 133
  },
  "luminance": 0.24441
}

Semantic roles & 50–950 ramp

primary
#5B971C
secondary
#864EC1
accent
#3CEC92
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5B971C

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

Preview Lab → · Contrast checker → · Palette generator →

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