#5D8822#5D8822

#5D8822 is a mid, vivid yellow-green. Relative luminance 0.201; OKLCH L 57.5% C 0.138 H 130.0°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#5D8822
RGBrgb(93, 136, 34)
HSLhsl(85, 60%, 33%)
HSVhsv(85, 75%, 53%)
CMYKcmyk(31.6%, 0%, 75%, 46.7%)
CIE-LABlab(51.89, -31.08, 47.07)
CIE-LCHlch(51.89, 56.41, 123.44°)
OKLaboklab(57.48% -0.0884 0.1054)
OKLCHoklch(57.48% 0.138 130)
XYZxyz(13.6070, 20.0505, 4.6663)
Luminance0.2005 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D8822 #4D2288
analogous
#888022 #5D8822 #2A8822
triadic
#5D8822 #225D88 #88225D
tetradic
#5D8822 #228880 #4D2288 #88222A
square
#5D8822 #228880 #4D2288 #88222A
split-complementary
#5D8822 #222A88 #802288
monochromatic
#1A260A #3C5716 #5D8822 #7EB92E #9CD351

Accessibility & contrast

On white

4.19
#5D8822 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#5D8822 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5D8822
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D8822#FFFFFF#000000##000000
##5D88221.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E0E
Deuteranopia (green-blind)
#897B2C
Tritanopia (blue-blind)
#5F8274
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5d8822;
/* rgb */ color: rgb(93, 136, 34);
/* oklch */ color: oklch(57.5% 0.138 130.0);
Tailwind
colors: {
  custom: {
    50: '#8fab65',
    500: '#5d8822',
    950: '#000000',
  },
}
SCSS
$custom: #5d8822;
$custom-light: #8fab65;
$custom-dark: #000000;
JSON
{
  "hex": "#5d8822",
  "rgb": {
    "r": 93,
    "g": 136,
    "b": 34
  },
  "hsl": {
    "h": 85.294,
    "s": 60,
    "l": 33.333
  },
  "oklch": {
    "l": 0.5748,
    "c": 0.13751,
    "h": 130
  },
  "luminance": 0.20051
}

Semantic roles & 50–950 ramp

primary
#5D8822
secondary
#7B4FB7
accent
#45E387
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5D8822

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

Preview Lab → · Contrast checker → · Palette generator →

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