#5B931F#5B931F

#5B931F is a mid, vivid yellow-green. Relative luminance 0.232; OKLCH L 60.2% C 0.155 H 132.6°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#5B931F
RGBrgb(91, 147, 31)
HSLhsl(89, 65%, 35%)
HSVhsv(89, 79%, 58%)
CMYKcmyk(38.1%, 0%, 78.9%, 42.4%)
CIE-LABlab(55.27, -37.01, 51.34)
CIE-LCHlch(55.27, 63.29, 125.79°)
OKLaboklab(60.2% -0.1045 0.1139)
OKLCHoklch(60.2% 0.155 132.6)
XYZxyz(14.9952, 23.1898, 4.9821)
Luminance0.2319 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B931F #571F93
analogous
#93911F #5B931F #21931F
triadic
#5B931F #1F5B93 #931F5B
tetradic
#5B931F #1F9391 #571F93 #931F21
square
#5B931F #1F9391 #571F93 #931F21
split-complementary
#5B931F #1F2193 #911F93
monochromatic
#1C2E0A #3C6014 #5B931F #7AC62A #99DA52

Accessibility & contrast

On white

3.72
#5B931F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#5B931F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B931F
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B931F#FFFFFF#000000##000000
##5B931F1.003.725.645.64
#FFFFFF3.721.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#998700
Deuteranopia (green-blind)
#92832B
Tritanopia (blue-blind)
#5C8D7D
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5b931f;
/* rgb */ color: rgb(91, 147, 31);
/* oklch */ color: oklch(60.2% 0.155 132.6);
Tailwind
colors: {
  custom: {
    50: '#8eb365',
    500: '#5b931f',
    950: '#000000',
  },
}
SCSS
$custom: #5b931f;
$custom-light: #8eb365;
$custom-dark: #000000;
JSON
{
  "hex": "#5b931f",
  "rgb": {
    "r": 91,
    "g": 147,
    "b": 31
  },
  "hsl": {
    "h": 88.966,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.60197,
    "c": 0.15457,
    "h": 132.6
  },
  "luminance": 0.23191
}

Semantic roles & 50–950 ramp

primary
#5B931F
secondary
#8550BE
accent
#40E891
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5B931F

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

Preview Lab → · Contrast checker → · Palette generator →

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