#5D2CA1#5D2CA1

#5D2CA1 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.7% C 0.177 H 297.4°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#5D2CA1
RGBrgb(93, 44, 161)
HSLhsl(265, 57%, 40%)
HSVhsv(265, 73%, 63%)
CMYKcmyk(42.2%, 72.7%, 0%, 36.9%)
CIE-LABlab(31.12, 46.66, -54.95)
CIE-LCHlch(31.12, 72.09, 310.34°)
OKLaboklab(42.7% 0.0815 -0.1571)
OKLCHoklch(42.7% 0.177 297.4)
XYZxyz(11.8462, 6.7015, 34.3807)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2CA1 #70A12C
analogous
#2C36A1 #5D2CA1 #972CA1
triadic
#5D2CA1 #A15D2C #2CA15D
tetradic
#5D2CA1 #A12C36 #70A12C #2CA197
square
#5D2CA1 #A12C36 #70A12C #2CA197
split-complementary
#5D2CA1 #A1972C #36A12C
monochromatic
#251241 #411F71 #5D2CA1 #7A40CB #9B70D8

Accessibility & contrast

On white

8.97
#5D2CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5D2CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2CA1
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2CA1#FFFFFF#000000##FFFFFF
##5D2CA11.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA4
Deuteranopia (green-blind)
#00489F
Tritanopia (blue-blind)
#4C4964
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5d2ca1;
/* rgb */ color: rgb(93, 44, 161);
/* oklch */ color: oklch(42.7% 0.177 297.4);
Tailwind
colors: {
  custom: {
    50: '#916abe',
    500: '#5d2ca1',
    950: '#000000',
  },
}
SCSS
$custom: #5d2ca1;
$custom-light: #916abe;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2ca1",
  "rgb": {
    "r": 93,
    "g": 44,
    "b": 161
  },
  "hsl": {
    "h": 265.128,
    "s": 57.073,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42696,
    "c": 0.17699,
    "h": 297.4
  },
  "luminance": 0.06702
}

Semantic roles & 50–950 ramp

primary
#5D2CA1
secondary
#9BBF6A
accent
#E047A0
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D2CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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