#5D18A0#5D18A0

#5D18A0 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.6% C 0.196 H 300.1°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#5D18A0
RGBrgb(93, 24, 160)
HSLhsl(270, 74%, 36%)
HSVhsv(270, 85%, 63%)
CMYKcmyk(41.9%, 85%, 0%, 37.3%)
CIE-LABlab(28.16, 54.66, -59.18)
CIE-LCHlch(28.16, 80.56, 312.73°)
OKLaboklab(40.6% 0.0981 -0.1693)
OKLCHoklch(40.6% 0.196 300.1)
XYZxyz(11.1844, 5.5184, 33.7268)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D18A0 #5BA018
analogous
#1918A0 #5D18A0 #A0189F
triadic
#5D18A0 #A05D18 #18A05D
tetradic
#5D18A0 #A01918 #5BA018 #189FA0
square
#5D18A0 #A01918 #5BA018 #189FA0
split-complementary
#5D18A0 #9FA018 #18A019
monochromatic
#1F0836 #3E106B #5D18A0 #7C20D5 #9A4EE4

Accessibility & contrast

On white

9.98
#5D18A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D18A0
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D18A0#FFFFFF#000000##FFFFFF
##5D18A01.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A4
Deuteranopia (green-blind)
#00419E
Tritanopia (blue-blind)
#4D405F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5d18a0;
/* rgb */ color: rgb(93, 24, 160);
/* oklch */ color: oklch(40.6% 0.196 300.1);
Tailwind
colors: {
  custom: {
    50: '#9260bd',
    500: '#5d18a0',
    950: '#000000',
  },
}
SCSS
$custom: #5d18a0;
$custom-light: #9260bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5d18a0",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 160
  },
  "hsl": {
    "h": 270.441,
    "s": 73.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40604,
    "c": 0.19571,
    "h": 300.1
  },
  "luminance": 0.05518
}

Semantic roles & 50–950 ramp

primary
#5D18A0
secondary
#89C64D
accent
#F13793
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5D18A0

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

Preview Lab → · Contrast checker → · Palette generator →

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