#5D189F#5D189F

#5D189F is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.5% C 0.195 H 300.4°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#5D189F
RGBrgb(93, 24, 159)
HSLhsl(271, 74%, 36%)
HSVhsv(271, 85%, 62%)
CMYKcmyk(41.5%, 84.9%, 0%, 37.6%)
CIE-LABlab(28.07, 54.42, -58.72)
CIE-LCHlch(28.07, 80.06, 312.82°)
OKLaboklab(40.51% 0.0985 -0.168)
OKLCHoklch(40.51% 0.195 300.4)
XYZxyz(11.0973, 5.4835, 33.2679)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D189F #5A9F18
analogous
#1A189F #5D189F #9F189D
triadic
#5D189F #9F5D18 #189F5D
tetradic
#5D189F #9F1A18 #5A9F18 #189D9F
square
#5D189F #9F1A18 #5A9F18 #189D9F
split-complementary
#5D189F #9D9F18 #189F1A
monochromatic
#1F0835 #3E106A #5D189F #7C20D4 #9A4DE4

Accessibility & contrast

On white

10.02
#5D189F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5D189F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D189F
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D189F#FFFFFF#000000##FFFFFF
##5D189F1.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A3
Deuteranopia (green-blind)
#00419D
Tritanopia (blue-blind)
#4D405E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5d189f;
/* rgb */ color: rgb(93, 24, 159);
/* oklch */ color: oklch(40.5% 0.195 300.4);
Tailwind
colors: {
  custom: {
    50: '#9260bc',
    500: '#5d189f',
    950: '#000000',
  },
}
SCSS
$custom: #5d189f;
$custom-light: #9260bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d189f",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 159
  },
  "hsl": {
    "h": 270.667,
    "s": 73.77,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40511,
    "c": 0.19474,
    "h": 300.4
  },
  "luminance": 0.05484
}

Semantic roles & 50–950 ramp

primary
#5D189F
secondary
#88C64D
accent
#F03792
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5D189F

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

Preview Lab → · Contrast checker → · Palette generator →

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