#5F7828#5F7828

#5F7828 is a mid, moderate yellow-green. Relative luminance 0.160; OKLCH L 53.6% C 0.110 H 124.8°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#5F7828
RGBrgb(95, 120, 40)
HSLhsl(79, 50%, 31%)
HSVhsv(79, 67%, 47%)
CMYKcmyk(20.8%, 0%, 66.7%, 52.9%)
CIE-LABlab(47.00, -21.98, 39.59)
CIE-LCHlch(47.00, 45.29, 119.04°)
OKLaboklab(53.56% -0.063 0.0905)
OKLCHoklch(53.56% 0.11 124.8)
XYZxyz(11.8189, 16.0189, 4.4764)
Luminance0.1602 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7828 #412878
analogous
#786928 #5F7828 #377828
triadic
#5F7828 #285F78 #78285F
tetradic
#5F7828 #287869 #412878 #782837
square
#5F7828 #287869 #412878 #782837
split-complementary
#5F7828 #283778 #692878
monochromatic
#161C09 #3B4A19 #5F7828 #83A637 #A3C654

Accessibility & contrast

On white

5.00
#5F7828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#5F7828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7828
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7828#FFFFFF#000000##FFFFFF
##5F78281.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F701E
Deuteranopia (green-blind)
#7B6F2E
Tritanopia (blue-blind)
#637267
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5f7828;
/* rgb */ color: rgb(95, 120, 40);
/* oklch */ color: oklch(53.6% 0.110 124.8);
Tailwind
colors: {
  custom: {
    50: '#8f9f66',
    500: '#5f7828',
    950: '#000000',
  },
}
SCSS
$custom: #5f7828;
$custom-light: #8f9f66;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7828",
  "rgb": {
    "r": 95,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 78.75,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.53558,
    "c": 0.11029,
    "h": 124.8
  },
  "luminance": 0.16019
}

Semantic roles & 50–950 ramp

primary
#5F7828
secondary
#6D52AA
accent
#4EDA7A
background
#F8F9F6
surface
#F0F2EB
border
#CBCCC6
text
#0D0E06
muted
#7D7E7A

Preview Lab

Preview with #5F7828

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

Preview Lab → · Contrast checker → · Palette generator →

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