#5B821A#5B821A

#5B821A is a mid, vivid yellow-green. Relative luminance 0.183; OKLCH L 55.7% C 0.135 H 128.7°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#5B821A
RGBrgb(91, 130, 26)
HSLhsl(83, 67%, 31%)
HSVhsv(83, 80%, 51%)
CMYKcmyk(30%, 0%, 80%, 49%)
CIE-LABlab(49.81, -29.53, 47.86)
CIE-LCHlch(49.81, 56.23, 121.67°)
OKLaboklab(55.74% -0.0846 0.1057)
OKLCHoklch(55.74% 0.135 128.7)
XYZxyz(12.4835, 18.2637, 3.8446)
Luminance0.1826 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B821A #411A82
analogous
#82751A #5B821A #27821A
triadic
#5B821A #1A5B82 #821A5B
tetradic
#5B821A #1A8275 #411A82 #821A27
square
#5B821A #1A8275 #411A82 #821A27
split-complementary
#5B821A #1A2782 #751A82
monochromatic
#141C06 #374F10 #5B821A #7FB524 #9ED83E

Accessibility & contrast

On white

4.51
#5B821A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#5B821A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B821A
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B821A#FFFFFF#000000##000000
##5B821A1.004.514.654.65
#FFFFFF4.511.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#897800
Deuteranopia (green-blind)
#837625
Tritanopia (blue-blind)
#5E7C6F
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5b821a;
/* rgb */ color: rgb(91, 130, 26);
/* oklch */ color: oklch(55.7% 0.135 128.7);
Tailwind
colors: {
  custom: {
    50: '#8da660',
    500: '#5b821a',
    950: '#000000',
  },
}
SCSS
$custom: #5b821a;
$custom-light: #8da660;
$custom-dark: #000000;
JSON
{
  "hex": "#5b821a",
  "rgb": {
    "r": 91,
    "g": 130,
    "b": 26
  },
  "hsl": {
    "h": 82.5,
    "s": 66.667,
    "l": 30.588
  },
  "oklch": {
    "l": 0.55741,
    "c": 0.13544,
    "h": 128.7
  },
  "luminance": 0.18264
}

Semantic roles & 50–950 ramp

primary
#5B821A
secondary
#6D42B6
accent
#3EEA7E
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0D0F05
muted
#7D7F79

Preview Lab

Preview with #5B821A

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

Preview Lab → · Contrast checker → · Palette generator →

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