#5F7112#5F7112

#5F7112 is a mid, moderate yellow-green. Relative luminance 0.143; OKLCH L 51.6% C 0.116 H 120.5°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#5F7112
RGBrgb(95, 113, 18)
HSLhsl(71, 73%, 26%)
HSVhsv(71, 84%, 44%)
CMYKcmyk(15.9%, 0%, 84.1%, 55.7%)
CIE-LABlab(44.64, -19.71, 45.77)
CIE-LCHlch(44.64, 49.83, 113.29°)
OKLaboklab(51.61% -0.0587 0.0998)
OKLCHoklch(51.61% 0.116 120.5)
XYZxyz(10.7338, 14.2869, 2.7643)
Luminance0.1429 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7112 #241271
analogous
#715312 #5F7112 #307112
triadic
#5F7112 #125F71 #71125F
tetradic
#5F7112 #127153 #241271 #711230
square
#5F7112 #127153 #241271 #711230
split-complementary
#5F7112 #123071 #531271
monochromatic
#161A04 #333C0A #5F7112 #8BA61A #B8DB23

Accessibility & contrast

On white

5.44
#5F7112 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#5F7112 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7112
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7112#FFFFFF#000000##FFFFFF
##5F71121.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A00
Deuteranopia (green-blind)
#766A1C
Tritanopia (blue-blind)
#656B60
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5f7112;
/* rgb */ color: rgb(95, 113, 18);
/* oklch */ color: oklch(51.6% 0.116 120.5);
Tailwind
colors: {
  custom: {
    50: '#90995a',
    500: '#5f7112',
    950: '#000000',
  },
}
SCSS
$custom: #5f7112;
$custom-light: #90995a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7112",
  "rgb": {
    "r": 95,
    "g": 113,
    "b": 18
  },
  "hsl": {
    "h": 71.368,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.51607,
    "c": 0.11581,
    "h": 120.5
  },
  "luminance": 0.14287
}

Semantic roles & 50–950 ramp

primary
#5F7112
secondary
#4C37A8
accent
#39EF5B
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E04
muted
#7E7E79

Preview Lab

Preview with #5F7112

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

Preview Lab → · Contrast checker → · Palette generator →

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