#5F8822#5F8822

#5F8822 is a mid, vivid yellow-green. Relative luminance 0.202; OKLCH L 57.6% C 0.136 H 129.3°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#5F8822
RGBrgb(95, 136, 34)
HSLhsl(84, 60%, 33%)
HSVhsv(84, 75%, 53%)
CMYKcmyk(30.1%, 0%, 75%, 46.7%)
CIE-LABlab(52.01, -30.29, 47.23)
CIE-LCHlch(52.01, 56.11, 122.67°)
OKLaboklab(57.61% -0.0863 0.1056)
OKLCHoklch(57.61% 0.136 129.3)
XYZxyz(13.8122, 20.1563, 4.6759)
Luminance0.2016 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8822 #4B2288
analogous
#887E22 #5F8822 #2C8822
triadic
#5F8822 #225F88 #88225F
tetradic
#5F8822 #22887E #4B2288 #88222C
square
#5F8822 #22887E #4B2288 #88222C
split-complementary
#5F8822 #222C88 #7E2288
monochromatic
#1B260A #3D5716 #5F8822 #81B92E #9FD351

Accessibility & contrast

On white

4.17
#5F8822 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#5F8822 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8822
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8822#FFFFFF#000000##000000
##5F88221.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E0E
Deuteranopia (green-blind)
#897B2C
Tritanopia (blue-blind)
#628274
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5f8822;
/* rgb */ color: rgb(95, 136, 34);
/* oklch */ color: oklch(57.6% 0.136 129.3);
Tailwind
colors: {
  custom: {
    50: '#90ab65',
    500: '#5f8822',
    950: '#000000',
  },
}
SCSS
$custom: #5f8822;
$custom-light: #90ab65;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8822",
  "rgb": {
    "r": 95,
    "g": 136,
    "b": 34
  },
  "hsl": {
    "h": 84.118,
    "s": 60,
    "l": 33.333
  },
  "oklch": {
    "l": 0.57609,
    "c": 0.13643,
    "h": 129.3
  },
  "luminance": 0.20157
}

Semantic roles & 50–950 ramp

primary
#5F8822
secondary
#794FB7
accent
#45E384
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F8822

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

Preview Lab → · Contrast checker → · Palette generator →

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