#5F7217#5F7217

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

Color values

HEX#5F7217
RGBrgb(95, 114, 23)
HSLhsl(73, 66%, 27%)
HSVhsv(73, 80%, 45%)
CMYKcmyk(16.7%, 0%, 79.8%, 55.3%)
CIE-LABlab(44.98, -20.00, 44.46)
CIE-LCHlch(44.98, 48.75, 114.22°)
OKLaboklab(51.89% -0.0591 0.0979)
OKLCHoklch(51.89% 0.114 121.1)
XYZxyz(10.8915, 14.5294, 3.0411)
Luminance0.1453 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7217 #2A1772
analogous
#725817 #5F7217 #327217
triadic
#5F7217 #175F72 #72175F
tetradic
#5F7217 #177258 #2A1772 #721732
square
#5F7217 #177258 #2A1772 #721732
split-complementary
#5F7217 #173272 #581772
monochromatic
#151905 #353F0D #5F7217 #89A521 #B2D52E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F7217#FFFFFF#000000##FFFFFF
##5F72171.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)
#796B02
Deuteranopia (green-blind)
#776B20
Tritanopia (blue-blind)
#656C61
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5f7217;
/* rgb */ color: rgb(95, 114, 23);
/* oklch */ color: oklch(51.9% 0.114 121.1);
Tailwind
colors: {
  custom: {
    50: '#8f9a5c',
    500: '#5f7217',
    950: '#000000',
  },
}
SCSS
$custom: #5f7217;
$custom-light: #8f9a5c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7217",
  "rgb": {
    "r": 95,
    "g": 114,
    "b": 23
  },
  "hsl": {
    "h": 72.527,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.5189,
    "c": 0.11442,
    "h": 121.1
  },
  "luminance": 0.14529
}

Semantic roles & 50–950 ramp

primary
#5F7217
secondary
#533DA8
accent
#3EE962
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E04
muted
#7E7E79

Preview Lab

Preview with #5F7217

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

Preview Lab → · Contrast checker → · Palette generator →

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