#5D158A#5D158A

#5D158A is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.4% C 0.177 H 307.4°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#5D158A
RGBrgb(93, 21, 138)
HSLhsl(277, 74%, 31%)
HSVhsv(277, 85%, 54%)
CMYKcmyk(32.6%, 84.8%, 0%, 45.9%)
CIE-LABlab(25.86, 50.54, -49.40)
CIE-LCHlch(25.86, 70.68, 315.66°)
OKLaboklab(38.4% 0.1074 -0.1406)
OKLCHoklch(38.4% 0.177 307.4)
XYZxyz(9.3688, 4.6986, 24.4532)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D158A #428A15
analogous
#22158A #5D158A #8A157C
triadic
#5D158A #8A5D15 #158A5D
tetradic
#5D158A #8A2215 #428A15 #157C8A
square
#5D158A #8A2215 #428A15 #157C8A
split-complementary
#5D158A #7C8A15 #158A22
monochromatic
#150520 #390D55 #5D158A #811DBF #A039E1

Accessibility & contrast

On white

10.83
#5D158A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5D158A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D158A
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D158A#FFFFFF#000000##FFFFFF
##5D158A1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#553551
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5d158a;
/* rgb */ color: rgb(93, 21, 138);
/* oklch */ color: oklch(38.4% 0.177 307.4);
Tailwind
colors: {
  custom: {
    50: '#905dad',
    500: '#5d158a',
    950: '#000000',
  },
}
SCSS
$custom: #5d158a;
$custom-light: #905dad;
$custom-dark: #000000;
JSON
{
  "hex": "#5d158a",
  "rgb": {
    "r": 93,
    "g": 21,
    "b": 138
  },
  "hsl": {
    "h": 276.923,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38402,
    "c": 0.17695,
    "h": 307.4
  },
  "luminance": 0.04698
}

Semantic roles & 50–950 ramp

primary
#5D158A
secondary
#6EBE3D
accent
#F0387F
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D158A

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

Preview Lab → · Contrast checker → · Palette generator →

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