#5D148B#5D148B

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

Color values

HEX#5D148B
RGBrgb(93, 20, 139)
HSLhsl(277, 75%, 31%)
HSVhsv(277, 86%, 55%)
CMYKcmyk(33.1%, 85.6%, 0%, 45.5%)
CIE-LABlab(25.84, 51.08, -50.06)
CIE-LCHlch(25.84, 71.52, 315.58°)
OKLaboklab(38.42% 0.1078 -0.1425)
OKLCHoklch(38.42% 0.179 307.1)
XYZxyz(9.4235, 4.6917, 24.8302)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D148B #428B14
analogous
#21148B #5D148B #8B147D
triadic
#5D148B #8B5D14 #148B5D
tetradic
#5D148B #8B2114 #428B14 #147D8B
square
#5D148B #8B2114 #428B14 #147D8B
split-complementary
#5D148B #7D8B14 #148B21
monochromatic
#150520 #390C55 #5D148B #811CC1 #A037E2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5D148B#FFFFFF#000000##FFFFFF
##5D148B1.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)
#003B8E
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#553552
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5d148b;
/* rgb */ color: rgb(93, 20, 139);
/* oklch */ color: oklch(38.4% 0.179 307.1);
Tailwind
colors: {
  custom: {
    50: '#905dae',
    500: '#5d148b',
    950: '#000000',
  },
}
SCSS
$custom: #5d148b;
$custom-light: #905dae;
$custom-dark: #000000;
JSON
{
  "hex": "#5d148b",
  "rgb": {
    "r": 93,
    "g": 20,
    "b": 139
  },
  "hsl": {
    "h": 276.807,
    "s": 74.843,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38415,
    "c": 0.17873,
    "h": 307.1
  },
  "luminance": 0.04692
}

Semantic roles & 50–950 ramp

primary
#5D148B
secondary
#6EBF3C
accent
#F1367F
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D148B

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

Preview Lab → · Contrast checker → · Palette generator →

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