#5D1CA9#5D1CA9

#5D1CA9 is a dark, highly saturated violet. Relative luminance 0.060; OKLCH L 41.8% C 0.201 H 297.3°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#5D1CA9
RGBrgb(93, 28, 169)
HSLhsl(268, 72%, 39%)
HSVhsv(268, 83%, 66%)
CMYKcmyk(45%, 83.4%, 0%, 33.7%)
CIE-LABlab(29.47, 55.47, -62.48)
CIE-LCHlch(29.47, 83.55, 311.60°)
OKLaboklab(41.76% 0.0924 -0.1791)
OKLCHoklch(41.76% 0.201 297.3)
XYZxyz(12.0890, 6.0220, 38.0539)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1CA9 #68A91C
analogous
#1C21A9 #5D1CA9 #A31CA9
triadic
#5D1CA9 #A95D1C #1CA95D
tetradic
#5D1CA9 #A91C21 #68A91C #1CA9A3
square
#5D1CA9 #A91C21 #68A91C #1CA9A3
split-complementary
#5D1CA9 #A9A31C #21A91C
monochromatic
#230B40 #401374 #5D1CA9 #7A27DB #9A5BE4

Accessibility & contrast

On white

9.53
#5D1CA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5D1CA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1CA9
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1CA9#FFFFFF#000000##FFFFFF
##5D1CA91.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AD
Deuteranopia (green-blind)
#0044A6
Tritanopia (blue-blind)
#484665
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5d1ca9;
/* rgb */ color: rgb(93, 28, 169);
/* oklch */ color: oklch(41.8% 0.201 297.3);
Tailwind
colors: {
  custom: {
    50: '#9362c4',
    500: '#5d1ca9',
    950: '#000000',
  },
}
SCSS
$custom: #5d1ca9;
$custom-light: #9362c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1ca9",
  "rgb": {
    "r": 93,
    "g": 28,
    "b": 169
  },
  "hsl": {
    "h": 267.66,
    "s": 71.574,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4176,
    "c": 0.20148,
    "h": 297.3
  },
  "luminance": 0.06022
}

Semantic roles & 50–950 ramp

primary
#5D1CA9
secondary
#95C859
accent
#EE399B
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5D1CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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