#5D115F#5D115F

#5D115F is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.142 H 327.0°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#5D115F
RGBrgb(93, 17, 95)
HSLhsl(298, 70%, 22%)
HSVhsv(298, 82%, 37%)
CMYKcmyk(2.1%, 82.1%, 0%, 62.7%)
CIE-LABlab(22.14, 42.96, -27.82)
CIE-LCHlch(22.14, 51.18, 327.08°)
OKLaboklab(34.76% 0.1188 -0.0773)
OKLCHoklch(34.76% 0.142 327)
XYZxyz(6.7801, 3.5548, 11.1533)
Luminance0.0355 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D115F #135F11
analogous
#36115F #5D115F #5F113A
triadic
#5D115F #5F5D11 #115F5D
tetradic
#5D115F #5F3611 #135F11 #113A5F
square
#5D115F #5F3611 #135F11 #113A5F
split-complementary
#5D115F #3A5F11 #115F36
monochromatic
#19051A #2A082B #5D115F #901A93 #C324C7

Accessibility & contrast

On white

12.27
#5D115F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5D115F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D115F
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D115F#FFFFFF#000000##FFFFFF
##5D115F1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F61
Deuteranopia (green-blind)
#26385D
Tritanopia (blue-blind)
#601F38
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5d115f;
/* rgb */ color: rgb(93, 17, 95);
/* oklch */ color: oklch(34.8% 0.142 327.0);
Tailwind
colors: {
  custom: {
    50: '#8e5a8d',
    500: '#5d115f',
    950: '#000000',
  },
}
SCSS
$custom: #5d115f;
$custom-light: #8e5a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5d115f",
  "rgb": {
    "r": 93,
    "g": 17,
    "b": 95
  },
  "hsl": {
    "h": 298.462,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.3476,
    "c": 0.14176,
    "h": 327
  },
  "luminance": 0.03554
}

Semantic roles & 50–950 ramp

primary
#5D115F
secondary
#379834
accent
#EC3B40
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5D115F

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

Preview Lab → · Contrast checker → · Palette generator →

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