#5F8312#5F8312

#5F8312 is a mid, vivid yellow-green. Relative luminance 0.187; OKLCH L 56.2% C 0.138 H 127.0°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#5F8312
RGBrgb(95, 131, 18)
HSLhsl(79, 76%, 29%)
HSVhsv(79, 86%, 51%)
CMYKcmyk(27.5%, 0%, 86.3%, 48.6%)
CIE-LABlab(50.34, -28.72, 50.79)
CIE-LCHlch(50.34, 58.35, 119.49°)
OKLaboklab(56.23% -0.0832 0.1105)
OKLCHoklch(56.23% 0.138 127)
XYZxyz(12.9449, 18.7089, 3.5013)
Luminance0.1871 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8312 #361283
analogous
#836F12 #5F8312 #278312
triadic
#5F8312 #125F83 #83125F
tetradic
#5F8312 #12836F #361283 #831227
square
#5F8312 #12836F #361283 #831227
split-complementary
#5F8312 #122783 #6F1283
monochromatic
#141B04 #384D0B #5F8312 #86B919 #A9E22D

Accessibility & contrast

On white

4.43
#5F8312 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#5F8312 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8312
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8312#FFFFFF#000000##000000
##5F83121.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7900
Deuteranopia (green-blind)
#857720
Tritanopia (blue-blind)
#637C6F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5f8312;
/* rgb */ color: rgb(95, 131, 18);
/* oklch */ color: oklch(56.2% 0.138 127.0);
Tailwind
colors: {
  custom: {
    50: '#90a75d',
    500: '#5f8312',
    950: '#000000',
  },
}
SCSS
$custom: #5f8312;
$custom-light: #90a75d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8312",
  "rgb": {
    "r": 95,
    "g": 131,
    "b": 18
  },
  "hsl": {
    "h": 79.115,
    "s": 75.839,
    "l": 29.216
  },
  "oklch": {
    "l": 0.56226,
    "c": 0.13834,
    "h": 127
  },
  "luminance": 0.18709
}

Semantic roles & 50–950 ramp

primary
#5F8312
secondary
#6138B8
accent
#35F272
background
#F9FAF5
surface
#F1F4E9
border
#CBCEC5
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5F8312

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

Preview Lab → · Contrast checker → · Palette generator →

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