#5D841B#5D841B

#5D841B is a mid, vivid yellow-green. Relative luminance 0.189; OKLCH L 56.4% C 0.136 H 128.5°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#5D841B
RGBrgb(93, 132, 27)
HSLhsl(82, 66%, 31%)
HSVhsv(82, 80%, 52%)
CMYKcmyk(29.5%, 0%, 79.5%, 48.2%)
CIE-LABlab(50.58, -29.61, 48.29)
CIE-LCHlch(50.58, 56.64, 121.52°)
OKLaboklab(56.4% -0.0849 0.1068)
OKLCHoklch(56.4% 0.136 128.5)
XYZxyz(12.9633, 18.9085, 4.0034)
Luminance0.1891 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D841B #421B84
analogous
#84761B #5D841B #28841B
triadic
#5D841B #1B5D84 #841B5D
tetradic
#5D841B #1B8476 #421B84 #841B28
square
#5D841B #1B8476 #421B84 #841B28
split-complementary
#5D841B #1B2884 #761B84
monochromatic
#151E06 #395111 #5D841B #81B725 #A0D841

Accessibility & contrast

On white

4.39
#5D841B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#5D841B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5D841B
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D841B#FFFFFF#000000##000000
##5D841B1.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#857826
Tritanopia (blue-blind)
#607E70
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5d841b;
/* rgb */ color: rgb(93, 132, 27);
/* oklch */ color: oklch(56.4% 0.136 128.5);
Tailwind
colors: {
  custom: {
    50: '#8fa861',
    500: '#5d841b',
    950: '#000000',
  },
}
SCSS
$custom: #5d841b;
$custom-light: #8fa861;
$custom-dark: #000000;
JSON
{
  "hex": "#5d841b",
  "rgb": {
    "r": 93,
    "g": 132,
    "b": 27
  },
  "hsl": {
    "h": 82.286,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.56397,
    "c": 0.13642,
    "h": 128.5
  },
  "luminance": 0.18909
}

Semantic roles & 50–950 ramp

primary
#5D841B
secondary
#6E43B7
accent
#3FE97E
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D0F05
muted
#7E7F7A

Preview Lab

Preview with #5D841B

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

Preview Lab → · Contrast checker → · Palette generator →

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