#5F7512#5F7512

#5F7512 is a mid, vivid yellow-green. Relative luminance 0.152; OKLCH L 52.6% C 0.121 H 122.2°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#5F7512
RGBrgb(95, 117, 18)
HSLhsl(73, 73%, 26%)
HSVhsv(73, 85%, 46%)
CMYKcmyk(18.8%, 0%, 84.6%, 54.1%)
CIE-LABlab(45.91, -21.78, 46.89)
CIE-LCHlch(45.91, 51.70, 114.91°)
OKLaboklab(52.63% -0.0644 0.1022)
OKLCHoklch(52.63% 0.121 122.2)
XYZxyz(11.1900, 15.1991, 2.9164)
Luminance0.1520 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7512 #281275
analogous
#755A12 #5F7512 #2E7512
triadic
#5F7512 #125F75 #75125F
tetradic
#5F7512 #12755A #281275 #75122E
square
#5F7512 #12755A #281275 #75122E
split-complementary
#5F7512 #122E75 #5A1275
monochromatic
#161B04 #34400A #5F7512 #8AAA1A #B4DD24

Accessibility & contrast

On white

5.20
#5F7512 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#5F7512 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7512
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7512#FFFFFF#000000##FFFFFF
##5F75121.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6D00
Deuteranopia (green-blind)
#7A6D1D
Tritanopia (blue-blind)
#656F63
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5f7512;
/* rgb */ color: rgb(95, 117, 18);
/* oklch */ color: oklch(52.6% 0.121 122.2);
Tailwind
colors: {
  custom: {
    50: '#909c5b',
    500: '#5f7512',
    950: '#000000',
  },
}
SCSS
$custom: #5f7512;
$custom-light: #909c5b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7512",
  "rgb": {
    "r": 95,
    "g": 117,
    "b": 18
  },
  "hsl": {
    "h": 73.333,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.52627,
    "c": 0.1208,
    "h": 122.2
  },
  "luminance": 0.15199
}

Semantic roles & 50–950 ramp

primary
#5F7512
secondary
#5137AC
accent
#38F061
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E04
muted
#7E7E79

Preview Lab

Preview with #5F7512

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

Preview Lab → · Contrast checker → · Palette generator →

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