#5D189E#5D189E

#5D189E is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.4% C 0.194 H 300.7°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#5D189E
RGBrgb(93, 24, 158)
HSLhsl(271, 74%, 36%)
HSVhsv(271, 85%, 62%)
CMYKcmyk(41.1%, 84.8%, 0%, 38%)
CIE-LABlab(27.98, 54.19, -58.27)
CIE-LCHlch(27.98, 79.57, 312.92°)
OKLaboklab(40.42% 0.0988 -0.1667)
OKLCHoklch(40.42% 0.194 300.7)
XYZxyz(11.0108, 5.4489, 32.8128)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D189E #599E18
analogous
#1A189E #5D189E #9E189C
triadic
#5D189E #9E5D18 #189E5D
tetradic
#5D189E #9E1A18 #599E18 #189C9E
square
#5D189E #9E1A18 #599E18 #189C9E
split-complementary
#5D189E #9C9E18 #189E1A
monochromatic
#1E0834 #3E1069 #5D189E #7C20D3 #9A4DE4

Accessibility & contrast

On white

10.05
#5D189E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5D189E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D189E
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D189E#FFFFFF#000000##FFFFFF
##5D189E1.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A1
Deuteranopia (green-blind)
#00419C
Tritanopia (blue-blind)
#4E3F5E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5d189e;
/* rgb */ color: rgb(93, 24, 158);
/* oklch */ color: oklch(40.4% 0.194 300.7);
Tailwind
colors: {
  custom: {
    50: '#9260bc',
    500: '#5d189e',
    950: '#000000',
  },
}
SCSS
$custom: #5d189e;
$custom-light: #9260bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d189e",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 158
  },
  "hsl": {
    "h": 270.896,
    "s": 73.626,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40419,
    "c": 0.19375,
    "h": 300.7
  },
  "luminance": 0.05449
}

Semantic roles & 50–950 ramp

primary
#5D189E
secondary
#87C64C
accent
#F03891
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5D189E

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

Preview Lab → · Contrast checker → · Palette generator →

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