#5F7412#5F7412

#5F7412 is a mid, moderate yellow-green. Relative luminance 0.150; OKLCH L 52.4% C 0.120 H 121.8°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#5F7412
RGBrgb(95, 116, 18)
HSLhsl(73, 73%, 26%)
HSVhsv(73, 84%, 45%)
CMYKcmyk(18.1%, 0%, 84.5%, 54.5%)
CIE-LABlab(45.59, -21.26, 46.61)
CIE-LCHlch(45.59, 51.23, 114.52°)
OKLaboklab(52.37% -0.063 0.1016)
OKLCHoklch(52.37% 0.12 121.8)
XYZxyz(11.0741, 14.9673, 2.8777)
Luminance0.1497 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7412 #271274
analogous
#745812 #5F7412 #2E7412
triadic
#5F7412 #125F74 #74125F
tetradic
#5F7412 #127458 #271274 #74122E
square
#5F7412 #127458 #271274 #74122E
split-complementary
#5F7412 #122E74 #581274
monochromatic
#161A04 #343F0A #5F7412 #8AA91A #B5DD23

Accessibility & contrast

On white

5.26
#5F7412 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#5F7412 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7412
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7412#FFFFFF#000000##FFFFFF
##5F74121.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6C00
Deuteranopia (green-blind)
#796C1D
Tritanopia (blue-blind)
#656E62
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5f7412;
/* rgb */ color: rgb(95, 116, 18);
/* oklch */ color: oklch(52.4% 0.120 121.8);
Tailwind
colors: {
  custom: {
    50: '#909c5b',
    500: '#5f7412',
    950: '#000000',
  },
}
SCSS
$custom: #5f7412;
$custom-light: #909c5b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7412",
  "rgb": {
    "r": 95,
    "g": 116,
    "b": 18
  },
  "hsl": {
    "h": 72.857,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.52372,
    "c": 0.11954,
    "h": 121.8
  },
  "luminance": 0.14967
}

Semantic roles & 50–950 ramp

primary
#5F7412
secondary
#5037AB
accent
#38F05F
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E04
muted
#7E7E79

Preview Lab

Preview with #5F7412

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

Preview Lab → · Contrast checker → · Palette generator →

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