#5F7012#5F7012

#5F7012 is a mid, moderate yellow-green. Relative luminance 0.141; OKLCH L 51.4% C 0.115 H 120.0°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#5F7012
RGBrgb(95, 112, 18)
HSLhsl(71, 72%, 25%)
HSVhsv(71, 84%, 44%)
CMYKcmyk(15.2%, 0%, 83.9%, 56.1%)
CIE-LABlab(44.33, -19.18, 45.49)
CIE-LCHlch(44.33, 49.37, 112.86°)
OKLaboklab(51.35% -0.0573 0.0992)
OKLCHoklch(51.35% 0.115 120)
XYZxyz(10.6229, 14.0650, 2.7273)
Luminance0.1406 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7012 #231270
analogous
#705212 #5F7012 #307012
triadic
#5F7012 #125F70 #70125F
tetradic
#5F7012 #127052 #231270 #701230
square
#5F7012 #127052 #231270 #701230
split-complementary
#5F7012 #123070 #521270
monochromatic
#161A04 #323B0A #5F7012 #8CA51A #B8D923

Accessibility & contrast

On white

5.51
#5F7012 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#5F7012 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7012
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7012#FFFFFF#000000##FFFFFF
##5F70121.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786900
Deuteranopia (green-blind)
#76691C
Tritanopia (blue-blind)
#656A5F
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5f7012;
/* rgb */ color: rgb(95, 112, 18);
/* oklch */ color: oklch(51.4% 0.115 120.0);
Tailwind
colors: {
  custom: {
    50: '#90995a',
    500: '#5f7012',
    950: '#000000',
  },
}
SCSS
$custom: #5f7012;
$custom-light: #90995a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7012",
  "rgb": {
    "r": 95,
    "g": 112,
    "b": 18
  },
  "hsl": {
    "h": 70.851,
    "s": 72.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.51352,
    "c": 0.11456,
    "h": 120
  },
  "luminance": 0.14065
}

Semantic roles & 50–950 ramp

primary
#5F7012
secondary
#4B37A7
accent
#39EF5A
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0D04
muted
#7E7E79

Preview Lab

Preview with #5F7012

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

Preview Lab → · Contrast checker → · Palette generator →

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