#5F7212#5F7212

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

Color values

HEX#5F7212
RGBrgb(95, 114, 18)
HSLhsl(72, 73%, 26%)
HSVhsv(72, 84%, 45%)
CMYKcmyk(16.7%, 0%, 84.2%, 55.3%)
CIE-LABlab(44.96, -20.23, 46.05)
CIE-LCHlch(44.96, 50.30, 113.71°)
OKLaboklab(51.86% -0.0602 0.1004)
OKLCHoklch(51.86% 0.117 120.9)
XYZxyz(10.8460, 14.5112, 2.8017)
Luminance0.1451 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7212 #251272
analogous
#725512 #5F7212 #2F7212
triadic
#5F7212 #125F72 #72125F
tetradic
#5F7212 #127255 #251272 #72122F
square
#5F7212 #127255 #251272 #72122F
split-complementary
#5F7212 #122F72 #551272
monochromatic
#161A04 #333D0A #5F7212 #8BA71A #B7DC23

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F7212#FFFFFF#000000##FFFFFF
##5F72121.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)
#656C61
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5f7212;
/* rgb */ color: rgb(95, 114, 18);
/* oklch */ color: oklch(51.9% 0.117 120.9);
Tailwind
colors: {
  custom: {
    50: '#909a5a',
    500: '#5f7212',
    950: '#000000',
  },
}
SCSS
$custom: #5f7212;
$custom-light: #909a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7212",
  "rgb": {
    "r": 95,
    "g": 114,
    "b": 18
  },
  "hsl": {
    "h": 71.875,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.51861,
    "c": 0.11705,
    "h": 120.9
  },
  "luminance": 0.14511
}

Semantic roles & 50–950 ramp

primary
#5F7212
secondary
#4D37A9
accent
#38EF5D
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E04
muted
#7E7E79

Preview Lab

Preview with #5F7212

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

Preview Lab → · Contrast checker → · Palette generator →

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