#5F7E12#5F7E12

#5F7E12 is a mid, vivid yellow-green. Relative luminance 0.174; OKLCH L 54.9% C 0.132 H 125.5°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#5F7E12
RGBrgb(95, 126, 18)
HSLhsl(77, 75%, 28%)
HSVhsv(77, 86%, 49%)
CMYKcmyk(24.6%, 0%, 85.7%, 50.6%)
CIE-LABlab(48.76, -26.29, 49.40)
CIE-LCHlch(48.76, 55.96, 118.02°)
OKLaboklab(54.94% -0.0767 0.1075)
OKLCHoklch(54.94% 0.132 125.5)
XYZxyz(12.2895, 17.3981, 3.2829)
Luminance0.1740 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7E12 #31127E
analogous
#7E6712 #5F7E12 #297E12
triadic
#5F7E12 #125F7E #7E125F
tetradic
#5F7E12 #127E67 #31127E #7E1229
square
#5F7E12 #127E67 #31127E #7E1229
split-complementary
#5F7E12 #12297E #67127E
monochromatic
#141B04 #37480A #5F7E12 #87B41A #ACE12A

Accessibility & contrast

On white

4.69
#5F7E12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#5F7E12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7E12
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7E12#FFFFFF#000000##FFFFFF
##5F7E121.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#81731F
Tritanopia (blue-blind)
#64776B
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #5f7e12;
/* rgb */ color: rgb(95, 126, 18);
/* oklch */ color: oklch(54.9% 0.132 125.5);
Tailwind
colors: {
  custom: {
    50: '#90a35c',
    500: '#5f7e12',
    950: '#000000',
  },
}
SCSS
$custom: #5f7e12;
$custom-light: #90a35c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7e12",
  "rgb": {
    "r": 95,
    "g": 126,
    "b": 18
  },
  "hsl": {
    "h": 77.222,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.54937,
    "c": 0.13208,
    "h": 125.5
  },
  "luminance": 0.17398
}

Semantic roles & 50–950 ramp

primary
#5F7E12
secondary
#5C38B4
accent
#36F26C
background
#F9FAF5
surface
#F1F3E9
border
#CBCDC5
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5F7E12

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

Preview Lab → · Contrast checker → · Palette generator →

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