#5D148D#5D148D

#5D148D is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.181 H 306.4°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#5D148D
RGBrgb(93, 20, 141)
HSLhsl(276, 75%, 32%)
HSVhsv(276, 86%, 55%)
CMYKcmyk(34%, 85.8%, 0%, 44.7%)
CIE-LABlab(26.01, 51.53, -51.02)
CIE-LCHlch(26.01, 72.51, 315.29°)
OKLaboklab(38.59% 0.1072 -0.1454)
OKLCHoklch(38.59% 0.181 306.4)
XYZxyz(9.5710, 4.7507, 25.6069)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D148D #448D14
analogous
#20148D #5D148D #8D1481
triadic
#5D148D #8D5D14 #148D5D
tetradic
#5D148D #8D2014 #448D14 #14818D
square
#5D148D #8D2014 #448D14 #14818D
split-complementary
#5D148D #818D14 #148D20
monochromatic
#160522 #3A0C57 #5D148D #801CC3 #9F39E3

Accessibility & contrast

On white

10.77
#5D148D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5D148D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D148D
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D148D#FFFFFF#000000##FFFFFF
##5D148D1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#003E8B
Tritanopia (blue-blind)
#543653
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5d148d;
/* rgb */ color: rgb(93, 20, 141);
/* oklch */ color: oklch(38.6% 0.181 306.4);
Tailwind
colors: {
  custom: {
    50: '#905daf',
    500: '#5d148d',
    950: '#000000',
  },
}
SCSS
$custom: #5d148d;
$custom-light: #905daf;
$custom-dark: #000000;
JSON
{
  "hex": "#5d148d",
  "rgb": {
    "r": 93,
    "g": 20,
    "b": 141
  },
  "hsl": {
    "h": 276.198,
    "s": 75.155,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3859,
    "c": 0.18061,
    "h": 306.4
  },
  "luminance": 0.04751
}

Semantic roles & 50–950 ramp

primary
#5D148D
secondary
#71C13C
accent
#F23681
background
#F9F5FA
surface
#F2E9F5
border
#CCC5CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D148D

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

Preview Lab → · Contrast checker → · Palette generator →

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