#5F175F#5F175F

#5F175F is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.6% C 0.136 H 328.0°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#5F175F
RGBrgb(95, 23, 95)
HSLhsl(300, 61%, 23%)
HSVhsv(300, 76%, 37%)
CMYKcmyk(0%, 75.8%, 0%, 62.7%)
CIE-LABlab(23.25, 41.33, -26.04)
CIE-LCHlch(23.25, 48.85, 327.79°)
OKLaboklab(35.62% 0.1153 -0.0721)
OKLCHoklch(35.62% 0.136 328)
XYZxyz(7.0912, 3.8724, 11.1982)
Luminance0.0387 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F175F #175F17
analogous
#3B175F #5F175F #5F173B
triadic
#5F175F #5F5F17 #175F5F
tetradic
#5F175F #5F3B17 #175F17 #173B5F
square
#5F175F #5F3B17 #175F17 #173B5F
split-complementary
#5F175F #3B5F17 #175F3B
monochromatic
#190619 #2E0B2E #5F175F #902390 #C22FC2

Accessibility & contrast

On white

11.83
#5F175F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#5F175F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F175F
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F175F#FFFFFF#000000##FFFFFF
##5F175F1.0011.831.7711.83
#FFFFFF11.831.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3161
Deuteranopia (green-blind)
#2A3B5D
Tritanopia (blue-blind)
#622239
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5f175f;
/* rgb */ color: rgb(95, 23, 95);
/* oklch */ color: oklch(35.6% 0.136 328.0);
Tailwind
colors: {
  custom: {
    50: '#8f5c8d',
    500: '#5f175f',
    950: '#000000',
  },
}
SCSS
$custom: #5f175f;
$custom-light: #8f5c8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f175f",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 95
  },
  "hsl": {
    "h": 300,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.35619,
    "c": 0.13599,
    "h": 328
  },
  "luminance": 0.03872
}

Semantic roles & 50–950 ramp

primary
#5F175F
secondary
#3C963C
accent
#E44444
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F175F

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

Preview Lab → · Contrast checker → · Palette generator →

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