#5B802C#5B802C

#5B802C is a mid, vivid yellow-green. Relative luminance 0.178; OKLCH L 55.4% C 0.120 H 129.8°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#5B802C
RGBrgb(91, 128, 44)
HSLhsl(86, 49%, 34%)
HSVhsv(86, 66%, 50%)
CMYKcmyk(28.9%, 0%, 65.6%, 49.8%)
CIE-LABlab(49.31, -27.30, 40.18)
CIE-LCHlch(49.31, 48.58, 124.20°)
OKLaboklab(55.37% -0.077 0.0924)
OKLCHoklch(55.37% 0.12 129.8)
XYZxyz(12.4881, 17.8440, 5.1687)
Luminance0.1784 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B802C #512C80
analogous
#807B2C #5B802C #31802C
triadic
#5B802C #2C5B80 #802C5B
tetradic
#5B802C #2C807B #512C80 #802C31
square
#5B802C #2C807B #512C80 #802C31
split-complementary
#5B802C #2C3180 #7B2C80
monochromatic
#1A250D #3B521C #5B802C #7BAE3C #99C85F

Accessibility & contrast

On white

4.60
#5B802C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#5B802C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5B802C
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B802C#FFFFFF#000000##FFFFFF
##5B802C1.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867722
Deuteranopia (green-blind)
#817432
Tritanopia (blue-blind)
#5D7B6E
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5b802c;
/* rgb */ color: rgb(91, 128, 44);
/* oklch */ color: oklch(55.4% 0.120 129.8);
Tailwind
colors: {
  custom: {
    50: '#8ca569',
    500: '#5b802c',
    950: '#000000',
  },
}
SCSS
$custom: #5b802c;
$custom-light: #8ca569;
$custom-dark: #000000;
JSON
{
  "hex": "#5b802c",
  "rgb": {
    "r": 91,
    "g": 128,
    "b": 44
  },
  "hsl": {
    "h": 86.429,
    "s": 48.837,
    "l": 33.725
  },
  "oklch": {
    "l": 0.55369,
    "c": 0.1203,
    "h": 129.8
  },
  "luminance": 0.17844
}

Semantic roles & 50–950 ramp

primary
#5B802C
secondary
#7F5AAE
accent
#4FD88C
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F06
muted
#7D7F7A

Preview Lab

Preview with #5B802C

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

Preview Lab → · Contrast checker → · Palette generator →

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