#5D1E9F#5D1E9F

#5D1E9F is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.0% C 0.190 H 299.8°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#5D1E9F
RGBrgb(93, 30, 159)
HSLhsl(269, 68%, 37%)
HSVhsv(269, 81%, 62%)
CMYKcmyk(41.5%, 81.1%, 0%, 37.6%)
CIE-LABlab(28.80, 52.30, -57.53)
CIE-LCHlch(28.80, 77.75, 312.27°)
OKLaboklab(41.01% 0.0943 -0.1646)
OKLCHoklch(41.01% 0.19 299.8)
XYZxyz(11.2349, 5.7588, 33.3138)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1E9F #609F1E
analogous
#1E209F #5D1E9F #9E1E9F
triadic
#5D1E9F #9F5D1E #1E9F5D
tetradic
#5D1E9F #9F1E20 #609F1E #1E9F9E
square
#5D1E9F #9F1E20 #609F1E #1E9F9E
split-complementary
#5D1E9F #9F9E1E #209F1E
monochromatic
#210B38 #3F146C #5D1E9F #7B28D2 #9A58DF

Accessibility & contrast

On white

9.76
#5D1E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5D1E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1E9F
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1E9F#FFFFFF#000000##FFFFFF
##5D1E9F1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#00439D
Tritanopia (blue-blind)
#4D425F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5d1e9f;
/* rgb */ color: rgb(93, 30, 159);
/* oklch */ color: oklch(41.0% 0.190 299.8);
Tailwind
colors: {
  custom: {
    50: '#9262bc',
    500: '#5d1e9f',
    950: '#000000',
  },
}
SCSS
$custom: #5d1e9f;
$custom-light: #9262bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1e9f",
  "rgb": {
    "r": 93,
    "g": 30,
    "b": 159
  },
  "hsl": {
    "h": 269.302,
    "s": 68.254,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41013,
    "c": 0.18966,
    "h": 299.8
  },
  "luminance": 0.05759
}

Semantic roles & 50–950 ramp

primary
#5D1E9F
secondary
#8EC356
accent
#EB3D96
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5D1E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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