#5E821B#5E821B

#5E821B is a mid, vivid yellow-green. Relative luminance 0.184; OKLCH L 55.9% C 0.133 H 127.6°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#5E821B
RGBrgb(94, 130, 27)
HSLhsl(81, 66%, 31%)
HSVhsv(81, 79%, 51%)
CMYKcmyk(27.7%, 0%, 79.2%, 49%)
CIE-LABlab(50.01, -28.24, 47.77)
CIE-LCHlch(50.01, 55.50, 120.59°)
OKLaboklab(55.95% -0.0813 0.1057)
OKLCHoklch(55.95% 0.133 127.6)
XYZxyz(12.7966, 18.4238, 3.9186)
Luminance0.1842 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E821B #3F1B82
analogous
#82721B #5E821B #2A821B
triadic
#5E821B #1B5E82 #821B5E
tetradic
#5E821B #1B8272 #3F1B82 #821B2A
square
#5E821B #1B8272 #3F1B82 #821B2A
split-complementary
#5E821B #1B2A82 #721B82
monochromatic
#151D06 #394F10 #5E821B #83B526 #A2D740

Accessibility & contrast

On white

4.48
#5E821B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#5E821B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5E821B
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E821B#FFFFFF#000000##000000
##5E821B1.004.484.684.68
#FFFFFF4.481.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#897801
Deuteranopia (green-blind)
#847625
Tritanopia (blue-blind)
#627C6F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5e821b;
/* rgb */ color: rgb(94, 130, 27);
/* oklch */ color: oklch(55.9% 0.133 127.6);
Tailwind
colors: {
  custom: {
    50: '#8fa660',
    500: '#5e821b',
    950: '#000000',
  },
}
SCSS
$custom: #5e821b;
$custom-light: #8fa660;
$custom-dark: #000000;
JSON
{
  "hex": "#5e821b",
  "rgb": {
    "r": 94,
    "g": 130,
    "b": 27
  },
  "hsl": {
    "h": 80.971,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.55947,
    "c": 0.13329,
    "h": 127.6
  },
  "luminance": 0.18424
}

Semantic roles & 50–950 ramp

primary
#5E821B
secondary
#6B43B6
accent
#3FE97A
background
#F9FAF5
surface
#F1F4EA
border
#CBCEC6
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5E821B

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

Preview Lab → · Contrast checker → · Palette generator →

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