#5F882D#5F882D

#5F882D is a mid, vivid yellow-green. Relative luminance 0.202; OKLCH L 57.7% C 0.129 H 130.3°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#5F882D
RGBrgb(95, 136, 45)
HSLhsl(87, 50%, 35%)
HSVhsv(87, 67%, 53%)
CMYKcmyk(30.1%, 0%, 66.9%, 46.7%)
CIE-LABlab(52.10, -29.48, 42.81)
CIE-LCHlch(52.10, 51.98, 124.55°)
OKLaboklab(57.7% -0.0832 0.098)
OKLCHoklch(57.7% 0.129 130.3)
XYZxyz(13.9970, 20.2303, 5.6495)
Luminance0.2023 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F882D #562D88
analogous
#88832D #5F882D #31882D
triadic
#5F882D #2D5F88 #882D5F
tetradic
#5F882D #2D8883 #562D88 #882D31
square
#5F882D #2D8883 #562D88 #882D31
split-complementary
#5F882D #2D3188 #832D88
monochromatic
#1F2C0F #3F5A1E #5F882D #7FB63C #9DCC64

Accessibility & contrast

On white

4.16
#5F882D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#5F882D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F882D
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F882D#FFFFFF#000000##000000
##5F882D1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E21
Deuteranopia (green-blind)
#887B34
Tritanopia (blue-blind)
#618275
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5f882d;
/* rgb */ color: rgb(95, 136, 45);
/* oklch */ color: oklch(57.7% 0.129 130.3);
Tailwind
colors: {
  custom: {
    50: '#8fab6b',
    500: '#5f882d',
    950: '#000000',
  },
}
SCSS
$custom: #5f882d;
$custom-light: #8fab6b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f882d",
  "rgb": {
    "r": 95,
    "g": 136,
    "b": 45
  },
  "hsl": {
    "h": 87.033,
    "s": 50.276,
    "l": 35.49
  },
  "oklch": {
    "l": 0.57703,
    "c": 0.12855,
    "h": 130.3
  },
  "luminance": 0.20231
}

Semantic roles & 50–950 ramp

primary
#5F882D
secondary
#845FB2
accent
#4EDA8D
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1007
muted
#7E7F7A

Preview Lab

Preview with #5F882D

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

Preview Lab → · Contrast checker → · Palette generator →

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