#5F7916#5F7916

#5F7916 is a mid, vivid yellow-green. Relative luminance 0.162; OKLCH L 53.7% C 0.124 H 123.9°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#5F7916
RGBrgb(95, 121, 22)
HSLhsl(76, 69%, 28%)
HSVhsv(76, 82%, 47%)
CMYKcmyk(21.5%, 0%, 81.8%, 52.5%)
CIE-LABlab(47.19, -23.64, 46.83)
CIE-LCHlch(47.19, 52.46, 116.78°)
OKLaboklab(53.67% -0.0692 0.1028)
OKLCHoklch(53.67% 0.124 123.9)
XYZxyz(11.7016, 16.1655, 3.2627)
Luminance0.1617 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7916 #301679
analogous
#796216 #5F7916 #2D7916
triadic
#5F7916 #165F79 #79165F
tetradic
#5F7916 #167962 #301679 #79162D
square
#5F7916 #167962 #301679 #79162D
split-complementary
#5F7916 #162D79 #621679
monochromatic
#141A05 #36450D #5F7916 #88AD1F #ADD930

Accessibility & contrast

On white

4.96
#5F7916 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#5F7916 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7916
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7916#FFFFFF#000000##FFFFFF
##5F79161.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807100
Deuteranopia (green-blind)
#7D7020
Tritanopia (blue-blind)
#647367
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5f7916;
/* rgb */ color: rgb(95, 121, 22);
/* oklch */ color: oklch(53.7% 0.124 123.9);
Tailwind
colors: {
  custom: {
    50: '#909f5d',
    500: '#5f7916',
    950: '#000000',
  },
}
SCSS
$custom: #5f7916;
$custom-light: #909f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7916",
  "rgb": {
    "r": 95,
    "g": 121,
    "b": 22
  },
  "hsl": {
    "h": 75.758,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.53673,
    "c": 0.12388,
    "h": 123.9
  },
  "luminance": 0.16166
}

Semantic roles & 50–950 ramp

primary
#5F7916
secondary
#5A3DAE
accent
#3CEC6A
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E05
muted
#7E7E79

Preview Lab

Preview with #5F7916

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

Preview Lab → · Contrast checker → · Palette generator →

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