#5F8928#5F8928

#5F8928 is a mid, vivid yellow-green. Relative luminance 0.205; OKLCH L 57.9% C 0.134 H 130.0°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#5F8928
RGBrgb(95, 137, 40)
HSLhsl(86, 55%, 35%)
HSVhsv(86, 71%, 54%)
CMYKcmyk(30.7%, 0%, 70.8%, 46.3%)
CIE-LABlab(52.37, -30.35, 45.23)
CIE-LCHlch(52.37, 54.47, 123.86°)
OKLaboklab(57.91% -0.086 0.1024)
OKLCHoklch(57.91% 0.134 130)
XYZxyz(14.0479, 20.4770, 5.2194)
Luminance0.2048 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8928 #522889
analogous
#898228 #5F8928 #2F8928
triadic
#5F8928 #285F89 #89285F
tetradic
#5F8928 #288982 #522889 #89282F
square
#5F8928 #288982 #522889 #89282F
split-complementary
#5F8928 #282F89 #822889
monochromatic
#1D2A0C #3E5A1A #5F8928 #80B836 #9DCF5C

Accessibility & contrast

On white

4.12
#5F8928 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#5F8928 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8928
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8928#FFFFFF#000000##000000
##5F89281.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F19
Deuteranopia (green-blind)
#8A7C30
Tritanopia (blue-blind)
#618376
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5f8928;
/* rgb */ color: rgb(95, 137, 40);
/* oklch */ color: oklch(57.9% 0.134 130.0);
Tailwind
colors: {
  custom: {
    50: '#90ab68',
    500: '#5f8928',
    950: '#000000',
  },
}
SCSS
$custom: #5f8928;
$custom-light: #90ab68;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8928",
  "rgb": {
    "r": 95,
    "g": 137,
    "b": 40
  },
  "hsl": {
    "h": 85.979,
    "s": 54.802,
    "l": 34.706
  },
  "oklch": {
    "l": 0.57914,
    "c": 0.13371,
    "h": 130
  },
  "luminance": 0.20477
}

Semantic roles & 50–950 ramp

primary
#5F8928
secondary
#8058B5
accent
#4ADE8A
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F8928

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

Preview Lab → · Contrast checker → · Palette generator →

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