#5F185D#5F185D

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

Color values

HEX#5F185D
RGBrgb(95, 24, 93)
HSLhsl(302, 60%, 23%)
HSVhsv(302, 75%, 37%)
CMYKcmyk(0%, 74.7%, 2.1%, 62.7%)
CIE-LABlab(23.26, 40.57, -24.70)
CIE-LCHlch(23.26, 47.50, 328.67°)
OKLaboklab(35.59% 0.1142 -0.0682)
OKLCHoklch(35.59% 0.133 329.1)
XYZxyz(7.0217, 3.8770, 10.7323)
Luminance0.0388 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F185D #185F1A
analogous
#3D185F #5F185D #5F1839
triadic
#5F185D #5D5F18 #185D5F
tetradic
#5F185D #5F3D18 #185F1A #18395F
square
#5F185D #5F3D18 #185F1A #18395F
split-complementary
#5F185D #395F18 #185F3D
monochromatic
#180618 #2E0C2D #5F185D #90248D #C131BD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F185D#FFFFFF#000000##FFFFFF
##5F185D1.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F315F
Deuteranopia (green-blind)
#2C3B5B
Tritanopia (blue-blind)
#622238
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5f185d;
/* rgb */ color: rgb(95, 24, 93);
/* oklch */ color: oklch(35.6% 0.133 329.1);
Tailwind
colors: {
  custom: {
    50: '#8f5d8b',
    500: '#5f185d',
    950: '#000000',
  },
}
SCSS
$custom: #5f185d;
$custom-light: #8f5d8b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f185d",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 93
  },
  "hsl": {
    "h": 301.69,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.35591,
    "c": 0.13298,
    "h": 329.1
  },
  "luminance": 0.03876
}

Semantic roles & 50–950 ramp

primary
#5F185D
secondary
#3D9540
accent
#E34945
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F185D

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

Preview Lab → · Contrast checker → · Palette generator →

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