#5F842E#5F842E

#5F842E is a mid, vivid yellow-green. Relative luminance 0.191; OKLCH L 56.7% C 0.122 H 129.4°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#5F842E
RGBrgb(95, 132, 46)
HSLhsl(86, 48%, 35%)
HSVhsv(86, 65%, 52%)
CMYKcmyk(28%, 0%, 65.2%, 48.2%)
CIE-LABlab(50.84, -27.47, 41.01)
CIE-LCHlch(50.84, 49.36, 123.81°)
OKLaboklab(56.69% -0.0776 0.0944)
OKLCHoklch(56.69% 0.122 129.4)
XYZxyz(13.4636, 19.1323, 5.5678)
Luminance0.1913 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F842E #532E84
analogous
#847E2E #5F842E #34842E
triadic
#5F842E #2E5F84 #842E5F
tetradic
#5F842E #2E847E #532E84 #842E34
square
#5F842E #2E847E #532E84 #842E34
split-complementary
#5F842E #2E3484 #7E2E84
monochromatic
#1E290E #3E571E #5F842E #80B13E #9DC964

Accessibility & contrast

On white

4.35
#5F842E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#5F842E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F842E
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F842E#FFFFFF#000000##000000
##5F842E1.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7B23
Deuteranopia (green-blind)
#857835
Tritanopia (blue-blind)
#627E72
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5f842e;
/* rgb */ color: rgb(95, 132, 46);
/* oklch */ color: oklch(56.7% 0.122 129.4);
Tailwind
colors: {
  custom: {
    50: '#8fa86b',
    500: '#5f842e',
    950: '#000000',
  },
}
SCSS
$custom: #5f842e;
$custom-light: #8fa86b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f842e",
  "rgb": {
    "r": 95,
    "g": 132,
    "b": 46
  },
  "hsl": {
    "h": 85.814,
    "s": 48.315,
    "l": 34.902
  },
  "oklch": {
    "l": 0.56687,
    "c": 0.12214,
    "h": 129.4
  },
  "luminance": 0.19133
}

Semantic roles & 50–950 ramp

primary
#5F842E
secondary
#815EB0
accent
#50D88A
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D0F07
muted
#7E7F7A

Preview Lab

Preview with #5F842E

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

Preview Lab → · Contrast checker → · Palette generator →

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