#5F7918#5F7918

#5F7918 is a mid, vivid yellow-green. Relative luminance 0.162; OKLCH L 53.7% C 0.123 H 124.0°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#5F7918
RGBrgb(95, 121, 24)
HSLhsl(76, 67%, 28%)
HSVhsv(76, 80%, 47%)
CMYKcmyk(21.5%, 0%, 80.2%, 52.5%)
CIE-LABlab(47.20, -23.54, 46.18)
CIE-LCHlch(47.20, 51.84, 117.01°)
OKLaboklab(53.69% -0.0688 0.1017)
OKLCHoklch(53.69% 0.123 124)
XYZxyz(11.7217, 16.1735, 3.3682)
Luminance0.1617 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7918 #321879
analogous
#796218 #5F7918 #2E7918
triadic
#5F7918 #185F79 #79185F
tetradic
#5F7918 #187962 #321879 #79182E
square
#5F7918 #187962 #321879 #79182E
split-complementary
#5F7918 #182E79 #621879
monochromatic
#141A05 #37460E #5F7918 #87AC22 #ABD735

Accessibility & contrast

On white

4.96
#5F7918 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#5F7918 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7918
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7918#FFFFFF#000000##FFFFFF
##5F79181.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807100
Deuteranopia (green-blind)
#7D7022
Tritanopia (blue-blind)
#647367
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5f7918;
/* rgb */ color: rgb(95, 121, 24);
/* oklch */ color: oklch(53.7% 0.123 124.0);
Tailwind
colors: {
  custom: {
    50: '#909f5e',
    500: '#5f7918',
    950: '#000000',
  },
}
SCSS
$custom: #5f7918;
$custom-light: #909f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7918",
  "rgb": {
    "r": 95,
    "g": 121,
    "b": 24
  },
  "hsl": {
    "h": 76.082,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.53685,
    "c": 0.1228,
    "h": 124
  },
  "luminance": 0.16174
}

Semantic roles & 50–950 ramp

primary
#5F7918
secondary
#5D3FAE
accent
#3EEA6C
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E05
muted
#7E7E79

Preview Lab

Preview with #5F7918

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

Preview Lab → · Contrast checker → · Palette generator →

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