#5F8520#5F8520

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

Color values

HEX#5F8520
RGBrgb(95, 133, 32)
HSLhsl(83, 61%, 32%)
HSVhsv(83, 76%, 52%)
CMYKcmyk(28.6%, 0%, 75.9%, 47.8%)
CIE-LABlab(51.05, -28.99, 47.03)
CIE-LCHlch(51.05, 55.24, 121.65°)
OKLaboklab(56.82% -0.083 0.1049)
OKLCHoklch(56.82% 0.134 128.3)
XYZxyz(13.3675, 19.3119, 4.3895)
Luminance0.1931 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8520 #462085
analogous
#857820 #5F8520 #2D8520
triadic
#5F8520 #205F85 #85205F
tetradic
#5F8520 #208578 #462085 #85202D
square
#5F8520 #208578 #462085 #85202D
split-complementary
#5F8520 #202D85 #782085
monochromatic
#192208 #3C5414 #5F8520 #82B62C #A1D44C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F8520#FFFFFF#000000##000000
##5F85201.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)
#8C7B0B
Deuteranopia (green-blind)
#87792A
Tritanopia (blue-blind)
#627F72
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5f8520;
/* rgb */ color: rgb(95, 133, 32);
/* oklch */ color: oklch(56.8% 0.134 128.3);
Tailwind
colors: {
  custom: {
    50: '#90a863',
    500: '#5f8520',
    950: '#000000',
  },
}
SCSS
$custom: #5f8520;
$custom-light: #90a863;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8520",
  "rgb": {
    "r": 95,
    "g": 133,
    "b": 32
  },
  "hsl": {
    "h": 82.574,
    "s": 61.212,
    "l": 32.353
  },
  "oklch": {
    "l": 0.56821,
    "c": 0.13373,
    "h": 128.3
  },
  "luminance": 0.19312
}

Semantic roles & 50–950 ramp

primary
#5F8520
secondary
#734AB7
accent
#43E480
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D0F06
muted
#7E7F7A

Preview Lab

Preview with #5F8520

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

Preview Lab → · Contrast checker → · Palette generator →

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