#5F8331#5F8331

#5F8331 is a mid, moderate yellow-green. Relative luminance 0.189; OKLCH L 56.5% C 0.118 H 129.5°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#5F8331
RGBrgb(95, 131, 49)
HSLhsl(86, 46%, 35%)
HSVhsv(86, 63%, 51%)
CMYKcmyk(27.5%, 0%, 62.6%, 48.6%)
CIE-LABlab(50.55, -26.71, 39.30)
CIE-LCHlch(50.55, 47.52, 124.20°)
OKLaboklab(56.46% -0.0752 0.0911)
OKLCHoklch(56.46% 0.118 129.5)
XYZxyz(13.3899, 18.8869, 5.8452)
Luminance0.1889 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8331 #553183
analogous
#837E31 #5F8331 #368331
triadic
#5F8331 #315F83 #83315F
tetradic
#5F8331 #31837E #553183 #833136
square
#5F8331 #31837E #553183 #833136
split-complementary
#5F8331 #313683 #7E3183
monochromatic
#1E2A10 #3F5620 #5F8331 #7FB042 #9DC668

Accessibility & contrast

On white

4.40
#5F8331 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#5F8331 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8331
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8331#FFFFFF#000000##000000
##5F83311.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#897A28
Deuteranopia (green-blind)
#847737
Tritanopia (blue-blind)
#617D72
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5f8331;
/* rgb */ color: rgb(95, 131, 49);
/* oklch */ color: oklch(56.5% 0.118 129.5);
Tailwind
colors: {
  custom: {
    50: '#8fa76d',
    500: '#5f8331',
    950: '#000000',
  },
}
SCSS
$custom: #5f8331;
$custom-light: #8fa76d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8331",
  "rgb": {
    "r": 95,
    "g": 131,
    "b": 49
  },
  "hsl": {
    "h": 86.341,
    "s": 45.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.56463,
    "c": 0.11812,
    "h": 129.5
  },
  "luminance": 0.18887
}

Semantic roles & 50–950 ramp

primary
#5F8331
secondary
#8362AE
accent
#53D58C
background
#F8FAF6
surface
#F0F4EC
border
#CBCEC7
text
#0D0F07
muted
#7D7F7A

Preview Lab

Preview with #5F8331

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

Preview Lab → · Contrast checker → · Palette generator →

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