#5F7218#5F7218

#5F7218 is a mid, moderate yellow-green. Relative luminance 0.145; OKLCH L 51.9% C 0.114 H 121.2°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#5F7218
RGBrgb(95, 114, 24)
HSLhsl(73, 65%, 27%)
HSVhsv(73, 79%, 45%)
CMYKcmyk(16.7%, 0%, 78.9%, 55.3%)
CIE-LABlab(44.99, -19.95, 44.12)
CIE-LCHlch(44.99, 48.42, 114.33°)
OKLaboklab(51.9% -0.0589 0.0974)
OKLCHoklch(51.9% 0.114 121.2)
XYZxyz(10.9017, 14.5335, 3.0949)
Luminance0.1453 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7218 #2B1872
analogous
#725818 #5F7218 #327218
triadic
#5F7218 #185F72 #72185F
tetradic
#5F7218 #187258 #2B1872 #721832
square
#5F7218 #187258 #2B1872 #721832
split-complementary
#5F7218 #183272 #581872
monochromatic
#151905 #353F0D #5F7218 #89A523 #B1D431

Accessibility & contrast

On white

5.38
#5F7218 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#5F7218 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7218
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7218#FFFFFF#000000##FFFFFF
##5F72181.005.383.915.38
#FFFFFF5.381.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796B04
Deuteranopia (green-blind)
#776B20
Tritanopia (blue-blind)
#656C61
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5f7218;
/* rgb */ color: rgb(95, 114, 24);
/* oklch */ color: oklch(51.9% 0.114 121.2);
Tailwind
colors: {
  custom: {
    50: '#8f9a5d',
    500: '#5f7218',
    950: '#000000',
  },
}
SCSS
$custom: #5f7218;
$custom-light: #8f9a5d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7218",
  "rgb": {
    "r": 95,
    "g": 114,
    "b": 24
  },
  "hsl": {
    "h": 72.667,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.51897,
    "c": 0.11383,
    "h": 121.2
  },
  "luminance": 0.14533
}

Semantic roles & 50–950 ramp

primary
#5F7218
secondary
#553EA7
accent
#40E863
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E04
muted
#7E7E79

Preview Lab

Preview with #5F7218

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

Preview Lab → · Contrast checker → · Palette generator →

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