#5F7612#5F7612

#5F7612 is a mid, vivid yellow-green. Relative luminance 0.154; OKLCH L 52.9% C 0.122 H 122.6°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#5F7612
RGBrgb(95, 118, 18)
HSLhsl(74, 74%, 27%)
HSVhsv(74, 85%, 46%)
CMYKcmyk(19.5%, 0%, 84.7%, 53.7%)
CIE-LABlab(46.22, -22.29, 47.17)
CIE-LCHlch(46.22, 52.17, 115.29°)
OKLaboklab(52.88% -0.0658 0.1028)
OKLCHoklch(52.88% 0.122 122.6)
XYZxyz(11.3071, 15.4334, 2.9554)
Luminance0.1543 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7612 #291276
analogous
#765B12 #5F7612 #2D7612
triadic
#5F7612 #125F76 #76125F
tetradic
#5F7612 #12765B #291276 #76122D
square
#5F7612 #12765B #291276 #76122D
split-complementary
#5F7612 #122D76 #5B1276
monochromatic
#151B04 #34410A #5F7612 #8AAB1A #B3DE25

Accessibility & contrast

On white

5.14
#5F7612 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#5F7612 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7612
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7612#FFFFFF#000000##FFFFFF
##5F76121.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6E00
Deuteranopia (green-blind)
#7B6D1D
Tritanopia (blue-blind)
#647064
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5f7612;
/* rgb */ color: rgb(95, 118, 18);
/* oklch */ color: oklch(52.9% 0.122 122.6);
Tailwind
colors: {
  custom: {
    50: '#909d5b',
    500: '#5f7612',
    950: '#000000',
  },
}
SCSS
$custom: #5f7612;
$custom-light: #909d5b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7612",
  "rgb": {
    "r": 95,
    "g": 118,
    "b": 18
  },
  "hsl": {
    "h": 73.8,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.52883,
    "c": 0.12205,
    "h": 122.6
  },
  "luminance": 0.15433
}

Semantic roles & 50–950 ramp

primary
#5F7612
secondary
#5237AD
accent
#38F062
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E04
muted
#7E7E79

Preview Lab

Preview with #5F7612

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

Preview Lab → · Contrast checker → · Palette generator →

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