#5F185C#5F185C

#5F185C is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.5% C 0.132 H 329.7°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#5F185C
RGBrgb(95, 24, 92)
HSLhsl(303, 60%, 23%)
HSVhsv(303, 75%, 37%)
CMYKcmyk(0%, 74.7%, 3.2%, 62.7%)
CIE-LABlab(23.20, 40.39, -24.13)
CIE-LCHlch(23.20, 47.05, 329.15°)
OKLaboklab(35.53% 0.1141 -0.0666)
OKLCHoklch(35.53% 0.132 329.7)
XYZxyz(6.9777, 3.8594, 10.5006)
Luminance0.0386 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F185C #185F1B
analogous
#3E185F #5F185C #5F1838
triadic
#5F185C #5C5F18 #185C5F
tetradic
#5F185C #5F3E18 #185F1B #18385F
square
#5F185C #5F3E18 #185F1B #18385F
split-complementary
#5F185C #385F18 #185F3E
monochromatic
#180618 #2E0C2D #5F185C #90248B #C131BB

Accessibility & contrast

On white

11.85
#5F185C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F185C
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F185C#FFFFFF#000000##FFFFFF
##5F185C1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10315E
Deuteranopia (green-blind)
#2C3B5A
Tritanopia (blue-blind)
#632138
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5f185c;
/* rgb */ color: rgb(95, 24, 92);
/* oklch */ color: oklch(35.5% 0.132 329.7);
Tailwind
colors: {
  custom: {
    50: '#8f5d8a',
    500: '#5f185c',
    950: '#000000',
  },
}
SCSS
$custom: #5f185c;
$custom-light: #8f5d8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f185c",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 92
  },
  "hsl": {
    "h": 302.535,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.35529,
    "c": 0.13211,
    "h": 329.7
  },
  "luminance": 0.03859
}

Semantic roles & 50–950 ramp

primary
#5F185C
secondary
#3D9541
accent
#E34C45
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F185C

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

Preview Lab → · Contrast checker → · Palette generator →

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