#5E841B#5E841B

#5E841B is a mid, vivid yellow-green. Relative luminance 0.190; OKLCH L 56.5% C 0.136 H 128.1°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#5E841B
RGBrgb(94, 132, 27)
HSLhsl(82, 66%, 31%)
HSVhsv(82, 80%, 52%)
CMYKcmyk(28.8%, 0%, 79.5%, 48.2%)
CIE-LABlab(50.64, -29.20, 48.37)
CIE-LCHlch(50.64, 56.50, 121.12°)
OKLaboklab(56.46% -0.0839 0.1069)
OKLCHoklch(56.46% 0.136 128.1)
XYZxyz(13.0652, 18.9610, 4.0082)
Luminance0.1896 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E841B #411B84
analogous
#84751B #5E841B #29841B
triadic
#5E841B #1B5E84 #841B5E
tetradic
#5E841B #1B8475 #411B84 #841B29
square
#5E841B #1B8475 #411B84 #841B29
split-complementary
#5E841B #1B2984 #751B84
monochromatic
#161E06 #3A5111 #5E841B #82B725 #A2D841

Accessibility & contrast

On white

4.38
#5E841B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#5E841B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5E841B
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E841B#FFFFFF#000000##000000
##5E841B1.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#867826
Tritanopia (blue-blind)
#627E70
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5e841b;
/* rgb */ color: rgb(94, 132, 27);
/* oklch */ color: oklch(56.5% 0.136 128.1);
Tailwind
colors: {
  custom: {
    50: '#8fa861',
    500: '#5e841b',
    950: '#000000',
  },
}
SCSS
$custom: #5e841b;
$custom-light: #8fa861;
$custom-dark: #000000;
JSON
{
  "hex": "#5e841b",
  "rgb": {
    "r": 94,
    "g": 132,
    "b": 27
  },
  "hsl": {
    "h": 81.714,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.56464,
    "c": 0.13587,
    "h": 128.1
  },
  "luminance": 0.18961
}

Semantic roles & 50–950 ramp

primary
#5E841B
secondary
#6D43B7
accent
#3FE97C
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D0F05
muted
#7E7F7A

Preview Lab

Preview with #5E841B

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

Preview Lab → · Contrast checker → · Palette generator →

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