#5D821B#5D821B

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

Color values

HEX#5D821B
RGBrgb(93, 130, 27)
HSLhsl(82, 66%, 31%)
HSVhsv(82, 79%, 51%)
CMYKcmyk(28.5%, 0%, 79.2%, 49%)
CIE-LABlab(49.94, -28.66, 47.69)
CIE-LCHlch(49.94, 55.64, 121.00°)
OKLaboklab(55.88% -0.0823 0.1055)
OKLCHoklch(55.88% 0.134 128)
XYZxyz(12.6947, 18.3713, 3.9139)
Luminance0.1837 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D821B #401B82
analogous
#82731B #5D821B #2A821B
triadic
#5D821B #1B5D82 #821B5D
tetradic
#5D821B #1B8273 #401B82 #821B2A
square
#5D821B #1B8273 #401B82 #821B2A
split-complementary
#5D821B #1B2A82 #731B82
monochromatic
#141D06 #394F10 #5D821B #81B526 #A1D740

Accessibility & contrast

On white

4.49
#5D821B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.67
#5D821B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5D821B
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D821B#FFFFFF#000000##000000
##5D821B1.004.494.674.67
#FFFFFF4.491.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d821b;
/* rgb */ color: rgb(93, 130, 27);
/* oklch */ color: oklch(55.9% 0.134 128.0);
Tailwind
colors: {
  custom: {
    50: '#8fa660',
    500: '#5d821b',
    950: '#000000',
  },
}
SCSS
$custom: #5d821b;
$custom-light: #8fa660;
$custom-dark: #000000;
JSON
{
  "hex": "#5d821b",
  "rgb": {
    "r": 93,
    "g": 130,
    "b": 27
  },
  "hsl": {
    "h": 81.553,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.5588,
    "c": 0.13382,
    "h": 128
  },
  "luminance": 0.18372
}

Semantic roles & 50–950 ramp

primary
#5D821B
secondary
#6C43B6
accent
#3FE97C
background
#F9FAF5
surface
#F1F4EA
border
#CBCEC6
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5D821B

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

Preview Lab → · Contrast checker → · Palette generator →

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