#5F8522#5F8522

#5F8522 is a mid, vivid yellow-green. Relative luminance 0.193; OKLCH L 56.8% C 0.132 H 128.5°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#5F8522
RGBrgb(95, 133, 34)
HSLhsl(83, 59%, 33%)
HSVhsv(83, 74%, 52%)
CMYKcmyk(28.6%, 0%, 74.4%, 47.8%)
CIE-LABlab(51.06, -28.86, 46.29)
CIE-LCHlch(51.06, 54.55, 121.94°)
OKLaboklab(56.84% -0.0824 0.1037)
OKLCHoklch(56.84% 0.132 128.5)
XYZxyz(13.3956, 19.3231, 4.5370)
Luminance0.1932 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8522 #482285
analogous
#857922 #5F8522 #2E8522
triadic
#5F8522 #225F85 #85225F
tetradic
#5F8522 #228579 #482285 #85222E
square
#5F8522 #228579 #482285 #85222E
split-complementary
#5F8522 #222E85 #792285
monochromatic
#192409 #3C5416 #5F8522 #82B62E #A0D24F

Accessibility & contrast

On white

4.32
#5F8522 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#5F8522 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8522
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8522#FFFFFF#000000##000000
##5F85221.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B10
Deuteranopia (green-blind)
#86792B
Tritanopia (blue-blind)
#627F72
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5f8522;
/* rgb */ color: rgb(95, 133, 34);
/* oklch */ color: oklch(56.8% 0.132 128.5);
Tailwind
colors: {
  custom: {
    50: '#90a864',
    500: '#5f8522',
    950: '#000000',
  },
}
SCSS
$custom: #5f8522;
$custom-light: #90a864;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8522",
  "rgb": {
    "r": 95,
    "g": 133,
    "b": 34
  },
  "hsl": {
    "h": 83.03,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.56836,
    "c": 0.13246,
    "h": 128.5
  },
  "luminance": 0.19323
}

Semantic roles & 50–950 ramp

primary
#5F8522
secondary
#754DB6
accent
#45E282
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D0F06
muted
#7E7F7A

Preview Lab

Preview with #5F8522

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

Preview Lab → · Contrast checker → · Palette generator →

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