#5F185F#5F185F

#5F185F is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.7% C 0.135 H 327.9°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#5F185F
RGBrgb(95, 24, 95)
HSLhsl(300, 60%, 23%)
HSVhsv(300, 75%, 37%)
CMYKcmyk(0%, 74.7%, 0%, 62.7%)
CIE-LABlab(23.38, 40.94, -25.82)
CIE-LCHlch(23.38, 48.41, 327.76°)
OKLaboklab(35.72% 0.1142 -0.0715)
OKLCHoklch(35.72% 0.135 327.9)
XYZxyz(7.1114, 3.9129, 11.2050)
Luminance0.0391 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F185F #185F18
analogous
#3B185F #5F185F #5F183B
triadic
#5F185F #5F5F18 #185F5F
tetradic
#5F185F #5F3B18 #185F18 #183B5F
square
#5F185F #5F3B18 #185F18 #183B5F
split-complementary
#5F185F #3B5F18 #185F3B
monochromatic
#180618 #2E0C2E #5F185F #902490 #C131C1

Accessibility & contrast

On white

11.78
#5F185F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#5F185F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F185F
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F185F#FFFFFF#000000##FFFFFF
##5F185F1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3261
Deuteranopia (green-blind)
#2B3B5D
Tritanopia (blue-blind)
#62233A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5f185f;
/* rgb */ color: rgb(95, 24, 95);
/* oklch */ color: oklch(35.7% 0.135 327.9);
Tailwind
colors: {
  custom: {
    50: '#8f5d8d',
    500: '#5f185f',
    950: '#000000',
  },
}
SCSS
$custom: #5f185f;
$custom-light: #8f5d8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f185f",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 95
  },
  "hsl": {
    "h": 300,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.35717,
    "c": 0.13473,
    "h": 327.9
  },
  "luminance": 0.03912
}

Semantic roles & 50–950 ramp

primary
#5F185F
secondary
#3D953D
accent
#E34545
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F185F

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

Preview Lab → · Contrast checker → · Palette generator →

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