#5D148E#5D148E

#5D148E is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.7% C 0.182 H 306.1°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#5D148E
RGBrgb(93, 20, 142)
HSLhsl(276, 75%, 32%)
HSVhsv(276, 86%, 56%)
CMYKcmyk(34.5%, 85.9%, 0%, 44.3%)
CIE-LABlab(26.10, 51.76, -51.49)
CIE-LCHlch(26.10, 73.01, 315.15°)
OKLaboklab(38.68% 0.1069 -0.1468)
OKLCHoklch(38.68% 0.182 306.1)
XYZxyz(9.6458, 4.7806, 26.0005)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D148E #458E14
analogous
#20148E #5D148E #8E1482
triadic
#5D148E #8E5D14 #148E5D
tetradic
#5D148E #8E2014 #458E14 #14828E
square
#5D148E #8E2014 #458E14 #14828E
split-complementary
#5D148E #828E14 #148E20
monochromatic
#170523 #3A0C58 #5D148E #801CC4 #9F39E3

Accessibility & contrast

On white

10.74
#5D148E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5D148E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D148E
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D148E#FFFFFF#000000##FFFFFF
##5D148E1.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#543753
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5d148e;
/* rgb */ color: rgb(93, 20, 142);
/* oklch */ color: oklch(38.7% 0.182 306.1);
Tailwind
colors: {
  custom: {
    50: '#915db0',
    500: '#5d148e',
    950: '#000000',
  },
}
SCSS
$custom: #5d148e;
$custom-light: #915db0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d148e",
  "rgb": {
    "r": 93,
    "g": 20,
    "b": 142
  },
  "hsl": {
    "h": 275.902,
    "s": 75.309,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38678,
    "c": 0.18155,
    "h": 306.1
  },
  "luminance": 0.0478
}

Semantic roles & 50–950 ramp

primary
#5D148E
secondary
#72C23C
accent
#F23681
background
#F9F5FA
surface
#F2E9F5
border
#CCC5CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5D148E

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

Preview Lab → · Contrast checker → · Palette generator →

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