#5D1E8B#5D1E8B

#5D1E8B is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.169 H 306.1°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#5D1E8B
RGBrgb(93, 30, 139)
HSLhsl(275, 64%, 33%)
HSVhsv(275, 78%, 55%)
CMYKcmyk(33.1%, 78.4%, 0%, 45.5%)
CIE-LABlab(27.07, 47.49, -48.04)
CIE-LCHlch(27.07, 67.56, 314.67°)
OKLaboklab(39.28% 0.0998 -0.1367)
OKLCHoklch(39.28% 0.169 306.1)
XYZxyz(9.6376, 5.1199, 24.9016)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1E8B #4C8B1E
analogous
#261E8B #5D1E8B #8B1E82
triadic
#5D1E8B #8B5D1E #1E8B5D
tetradic
#5D1E8B #8B261E #4C8B1E #1E828B
square
#5D1E8B #8B261E #4C8B1E #1E828B
split-complementary
#5D1E8B #828B1E #1E8B26
monochromatic
#1A0826 #3B1359 #5D1E8B #7F29BD #9D4BD8

Accessibility & contrast

On white

10.38
#5D1E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5D1E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1E8B
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1E8B#FFFFFF#000000##FFFFFF
##5D1E8B1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#004089
Tritanopia (blue-blind)
#553A54
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5d1e8b;
/* rgb */ color: rgb(93, 30, 139);
/* oklch */ color: oklch(39.3% 0.169 306.1);
Tailwind
colors: {
  custom: {
    50: '#9061ae',
    500: '#5d1e8b',
    950: '#000000',
  },
}
SCSS
$custom: #5d1e8b;
$custom-light: #9061ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1e8b",
  "rgb": {
    "r": 93,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 274.679,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39277,
    "c": 0.16925,
    "h": 306.1
  },
  "luminance": 0.0512
}

Semantic roles & 50–950 ramp

primary
#5D1E8B
secondary
#7ABB4A
accent
#E74087
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5D1E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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