#5D1BA1#5D1BA1

#5D1BA1 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.9% C 0.194 H 299.5°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#5D1BA1
RGBrgb(93, 27, 161)
HSLhsl(270, 71%, 37%)
HSVhsv(270, 83%, 63%)
CMYKcmyk(42.2%, 83.2%, 0%, 36.9%)
CIE-LABlab(28.60, 53.88, -59.07)
CIE-LCHlch(28.60, 79.95, 312.37°)
OKLaboklab(40.93% 0.0958 -0.169)
OKLCHoklch(40.93% 0.194 299.5)
XYZxyz(11.3375, 5.6841, 34.2111)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1BA1 #5FA11B
analogous
#1B1CA1 #5D1BA1 #A01BA1
triadic
#5D1BA1 #A15D1B #1BA15D
tetradic
#5D1BA1 #A11B1C #5FA11B #1BA1A0
square
#5D1BA1 #A11B1C #5FA11B #1BA1A0
split-complementary
#5D1BA1 #A1A01B #1CA11B
monochromatic
#200938 #3F126D #5D1BA1 #7B24D5 #9A54E2

Accessibility & contrast

On white

9.83
#5D1BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5D1BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1BA1
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1BA1#FFFFFF#000000##FFFFFF
##5D1BA11.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A5
Deuteranopia (green-blind)
#00429F
Tritanopia (blue-blind)
#4C4260
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5d1ba1;
/* rgb */ color: rgb(93, 27, 161);
/* oklch */ color: oklch(40.9% 0.194 299.5);
Tailwind
colors: {
  custom: {
    50: '#9261be',
    500: '#5d1ba1',
    950: '#000000',
  },
}
SCSS
$custom: #5d1ba1;
$custom-light: #9261be;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1ba1",
  "rgb": {
    "r": 93,
    "g": 27,
    "b": 161
  },
  "hsl": {
    "h": 269.552,
    "s": 71.277,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40934,
    "c": 0.1943,
    "h": 299.5
  },
  "luminance": 0.05684
}

Semantic roles & 50–950 ramp

primary
#5D1BA1
secondary
#8DC552
accent
#EE3A95
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5D1BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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