#5D148F#5D148F

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

Color values

HEX#5D148F
RGBrgb(93, 20, 143)
HSLhsl(276, 75%, 32%)
HSVhsv(276, 86%, 56%)
CMYKcmyk(35%, 86%, 0%, 43.9%)
CIE-LABlab(26.19, 51.98, -51.97)
CIE-LCHlch(26.19, 73.51, 315.01°)
OKLaboklab(38.77% 0.1066 -0.1482)
OKLCHoklch(38.77% 0.182 305.7)
XYZxyz(9.7212, 4.8107, 26.3977)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D148F #468F14
analogous
#20148F #5D148F #8F1484
triadic
#5D148F #8F5D14 #148F5D
tetradic
#5D148F #8F2014 #468F14 #14848F
square
#5D148F #8F2014 #468F14 #14848F
split-complementary
#5D148F #848F14 #148F20
monochromatic
#170524 #3A0C59 #5D148F #801CC5 #9F3AE3

Accessibility & contrast

On white

10.70
#5D148F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D148F
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D148F#FFFFFF#000000##FFFFFF
##5D148F1.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#003E8D
Tritanopia (blue-blind)
#543754
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5d148f;
/* rgb */ color: rgb(93, 20, 143);
/* oklch */ color: oklch(38.8% 0.182 305.7);
Tailwind
colors: {
  custom: {
    50: '#915db1',
    500: '#5d148f',
    950: '#000000',
  },
}
SCSS
$custom: #5d148f;
$custom-light: #915db1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d148f",
  "rgb": {
    "r": 93,
    "g": 20,
    "b": 143
  },
  "hsl": {
    "h": 275.61,
    "s": 75.46,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38766,
    "c": 0.18249,
    "h": 305.7
  },
  "luminance": 0.04811
}

Semantic roles & 50–950 ramp

primary
#5D148F
secondary
#73C33C
accent
#F23682
background
#F9F5FB
surface
#F2E9F6
border
#CCC5D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5D148F

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

Preview Lab → · Contrast checker → · Palette generator →

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