#5F185B#5F185B

#5F185B is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.5% C 0.131 H 330.3°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#5F185B
RGBrgb(95, 24, 91)
HSLhsl(303, 60%, 23%)
HSVhsv(303, 75%, 37%)
CMYKcmyk(0%, 74.7%, 4.2%, 62.7%)
CIE-LABlab(23.14, 40.21, -23.56)
CIE-LCHlch(23.14, 46.60, 329.63°)
OKLaboklab(35.47% 0.1141 -0.0649)
OKLCHoklch(35.47% 0.131 330.3)
XYZxyz(6.9342, 3.8420, 10.2719)
Luminance0.0384 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F185B #185F1C
analogous
#3F185F #5F185B #5F1837
triadic
#5F185B #5B5F18 #185B5F
tetradic
#5F185B #5F3F18 #185F1C #18375F
square
#5F185B #5F3F18 #185F1C #18375F
split-complementary
#5F185B #375F18 #185F3F
monochromatic
#180617 #2E0C2C #5F185B #90248A #C131B9

Accessibility & contrast

On white

11.88
#5F185B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F185B
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F185B#FFFFFF#000000##FFFFFF
##5F185B1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11315D
Deuteranopia (green-blind)
#2D3B59
Tritanopia (blue-blind)
#632137
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5f185b;
/* rgb */ color: rgb(95, 24, 91);
/* oklch */ color: oklch(35.5% 0.131 330.3);
Tailwind
colors: {
  custom: {
    50: '#8f5d89',
    500: '#5f185b',
    950: '#000000',
  },
}
SCSS
$custom: #5f185b;
$custom-light: #8f5d89;
$custom-dark: #000000;
JSON
{
  "hex": "#5f185b",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 91
  },
  "hsl": {
    "h": 303.38,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.35467,
    "c": 0.13125,
    "h": 330.3
  },
  "luminance": 0.03841
}

Semantic roles & 50–950 ramp

primary
#5F185B
secondary
#3D9542
accent
#E34E45
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F185B

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

Preview Lab → · Contrast checker → · Palette generator →

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