#5F7211#5F7211

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

Color values

HEX#5F7211
RGBrgb(95, 114, 17)
HSLhsl(72, 74%, 26%)
HSVhsv(72, 85%, 45%)
CMYKcmyk(16.7%, 0%, 85.1%, 55.3%)
CIE-LABlab(44.95, -20.27, 46.34)
CIE-LCHlch(44.95, 50.58, 113.62°)
OKLaboklab(51.86% -0.0604 0.1008)
OKLCHoklch(51.86% 0.118 120.9)
XYZxyz(10.8380, 14.5080, 2.7596)
Luminance0.1451 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7211 #241172
analogous
#725411 #5F7211 #2E7211
triadic
#5F7211 #115F72 #72115F
tetradic
#5F7211 #117254 #241172 #72112E
square
#5F7211 #117254 #241172 #72112E
split-complementary
#5F7211 #112E72 #541172
monochromatic
#161B04 #333D09 #5F7211 #8BA719 #B8DD21

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F7211#FFFFFF#000000##FFFFFF
##5F72111.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)
#7A6B00
Deuteranopia (green-blind)
#776A1C
Tritanopia (blue-blind)
#656B61
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5f7211;
/* rgb */ color: rgb(95, 114, 17);
/* oklch */ color: oklch(51.9% 0.118 120.9);
Tailwind
colors: {
  custom: {
    50: '#909a5a',
    500: '#5f7211',
    950: '#000000',
  },
}
SCSS
$custom: #5f7211;
$custom-light: #909a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7211",
  "rgb": {
    "r": 95,
    "g": 114,
    "b": 17
  },
  "hsl": {
    "h": 71.753,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.51856,
    "c": 0.11752,
    "h": 120.9
  },
  "luminance": 0.14508
}

Semantic roles & 50–950 ramp

primary
#5F7211
secondary
#4C36A9
accent
#37F15B
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E04
muted
#7E7E79

Preview Lab

Preview with #5F7211

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

Preview Lab → · Contrast checker → · Palette generator →

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