#5D146C#5D146C

#5D146C is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.9% C 0.150 H 320.0°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#5D146C
RGBrgb(93, 20, 108)
HSLhsl(290, 69%, 25%)
HSVhsv(290, 81%, 42%)
CMYKcmyk(13.9%, 81.5%, 0%, 57.6%)
CIE-LABlab(23.37, 44.47, -34.35)
CIE-LCHlch(23.37, 56.19, 322.31°)
OKLaboklab(35.92% 0.1149 -0.0964)
OKLCHoklch(35.92% 0.15 320)
XYZxyz(7.4708, 3.9106, 14.5458)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D146C #236C14
analogous
#31146C #5D146C #6C144F
triadic
#5D146C #6C5D14 #146C5D
tetradic
#5D146C #6C3114 #236C14 #144F6C
square
#5D146C #6C3114 #236C14 #144F6C
split-complementary
#5D146C #4F6C14 #146C31
monochromatic
#16051A #310A38 #5D146C #891EA0 #B627D3

Accessibility & contrast

On white

11.78
#5D146C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#5D146C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D146C
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D146C#FFFFFF#000000##FFFFFF
##5D146C1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336E
Deuteranopia (green-blind)
#1D3A6A
Tritanopia (blue-blind)
#5D2740
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5d146c;
/* rgb */ color: rgb(93, 20, 108);
/* oklch */ color: oklch(35.9% 0.150 320.0);
Tailwind
colors: {
  custom: {
    50: '#8e5b97',
    500: '#5d146c',
    950: '#000000',
  },
}
SCSS
$custom: #5d146c;
$custom-light: #8e5b97;
$custom-dark: #000000;
JSON
{
  "hex": "#5d146c",
  "rgb": {
    "r": 93,
    "g": 20,
    "b": 108
  },
  "hsl": {
    "h": 289.773,
    "s": 68.75,
    "l": 25.098
  },
  "oklch": {
    "l": 0.35918,
    "c": 0.15003,
    "h": 320
  },
  "luminance": 0.0391
}

Semantic roles & 50–950 ramp

primary
#5D146C
secondary
#4BA339
accent
#EC3C5A
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5D146C

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

Preview Lab → · Contrast checker → · Palette generator →

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