#5F7216#5F7216

#5F7216 is a mid, moderate yellow-green. Relative luminance 0.145; OKLCH L 51.9% C 0.115 H 121.1°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#5F7216
RGBrgb(95, 114, 22)
HSLhsl(72, 68%, 27%)
HSVhsv(72, 81%, 45%)
CMYKcmyk(16.7%, 0%, 80.7%, 55.3%)
CIE-LABlab(44.98, -20.05, 44.80)
CIE-LCHlch(44.98, 49.08, 114.11°)
OKLaboklab(51.88% -0.0594 0.0985)
OKLCHoklch(51.88% 0.115 121.1)
XYZxyz(10.8816, 14.5255, 2.9893)
Luminance0.1452 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7216 #291672
analogous
#725716 #5F7216 #317216
triadic
#5F7216 #165F72 #72165F
tetradic
#5F7216 #167257 #291672 #721631
square
#5F7216 #167257 #291672 #721631
split-complementary
#5F7216 #163172 #571672
monochromatic
#151A05 #343F0C #5F7216 #8AA520 #B3D62C

Accessibility & contrast

On white

5.38
#5F7216 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#5F7216 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7216
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7216#FFFFFF#000000##FFFFFF
##5F72161.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796B00
Deuteranopia (green-blind)
#776B1F
Tritanopia (blue-blind)
#656C61
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5f7216;
/* rgb */ color: rgb(95, 114, 22);
/* oklch */ color: oklch(51.9% 0.115 121.1);
Tailwind
colors: {
  custom: {
    50: '#8f9a5c',
    500: '#5f7216',
    950: '#000000',
  },
}
SCSS
$custom: #5f7216;
$custom-light: #8f9a5c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7216",
  "rgb": {
    "r": 95,
    "g": 114,
    "b": 22
  },
  "hsl": {
    "h": 72.391,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.51884,
    "c": 0.11497,
    "h": 121.1
  },
  "luminance": 0.14525
}

Semantic roles & 50–950 ramp

primary
#5F7216
secondary
#523CA8
accent
#3DEB61
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E04
muted
#7E7E79

Preview Lab

Preview with #5F7216

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

Preview Lab → · Contrast checker → · Palette generator →

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