#5D1895#5D1895

#5D1895 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.6% C 0.185 H 303.4°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#5D1895
RGBrgb(93, 24, 149)
HSLhsl(273, 72%, 34%)
HSVhsv(273, 84%, 58%)
CMYKcmyk(37.6%, 83.9%, 0%, 41.6%)
CIE-LABlab(27.16, 52.07, -54.09)
CIE-LCHlch(27.16, 75.08, 313.91°)
OKLaboklab(39.6% 0.1019 -0.1544)
OKLCHoklch(39.6% 0.185 303.4)
XYZxyz(10.2644, 5.1504, 28.8813)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1895 #509518
analogous
#1F1895 #5D1895 #95188F
triadic
#5D1895 #955D18 #18955D
tetradic
#5D1895 #951F18 #509518 #188F95
square
#5D1895 #951F18 #509518 #188F95
split-complementary
#5D1895 #8F9518 #18951F
monochromatic
#1B072C #3C1060 #5D1895 #7E20CA #9C46E1

Accessibility & contrast

On white

10.34
#5D1895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5D1895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1895
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1895#FFFFFF#000000##FFFFFF
##5D18951.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F98
Deuteranopia (green-blind)
#004093
Tritanopia (blue-blind)
#513B58
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5d1895;
/* rgb */ color: rgb(93, 24, 149);
/* oklch */ color: oklch(39.6% 0.185 303.4);
Tailwind
colors: {
  custom: {
    50: '#915fb5',
    500: '#5d1895',
    950: '#000000',
  },
}
SCSS
$custom: #5d1895;
$custom-light: #915fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1895",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 149
  },
  "hsl": {
    "h": 273.12,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39602,
    "c": 0.18499,
    "h": 303.4
  },
  "luminance": 0.0515
}

Semantic roles & 50–950 ramp

primary
#5D1895
secondary
#7EC246
accent
#EF398A
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5D1895

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

Preview Lab → · Contrast checker → · Palette generator →

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