#5D418D#5D418D

#5D418D is a dark, vivid violet. Relative luminance 0.080; OKLCH L 44.4% C 0.122 H 298.3°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#5D418D
RGBrgb(93, 65, 141)
HSLhsl(262, 37%, 40%)
HSVhsv(262, 54%, 55%)
CMYKcmyk(34%, 53.9%, 0%, 44.7%)
CIE-LABlab(34.05, 29.49, -38.04)
CIE-LCHlch(34.05, 48.13, 307.79°)
OKLaboklab(44.37% 0.0578 -0.1074)
OKLCHoklch(44.37% 0.122 298.3)
XYZxyz(11.2110, 8.0307, 26.1536)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D418D #718D41
analogous
#414B8D #5D418D #83418D
triadic
#5D418D #8D5D41 #418D5D
tetradic
#5D418D #8D414B #718D41 #418D83
square
#5D418D #8D414B #718D41 #418D83
split-complementary
#5D418D #8D8341 #4B8D41
monochromatic
#261A39 #412E63 #5D418D #7A59B2 #9B83C6

Accessibility & contrast

On white

8.06
#5D418D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5D418D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D418D
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D418D#FFFFFF#000000##FFFFFF
##5D418D1.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245090
Deuteranopia (green-blind)
#2C4F8B
Tritanopia (blue-blind)
#535060
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5d418d;
/* rgb */ color: rgb(93, 65, 141);
/* oklch */ color: oklch(44.4% 0.122 298.3);
Tailwind
colors: {
  custom: {
    50: '#8e76af',
    500: '#5d418d',
    950: '#000000',
  },
}
SCSS
$custom: #5d418d;
$custom-light: #8e76af;
$custom-dark: #000000;
JSON
{
  "hex": "#5d418d",
  "rgb": {
    "r": 93,
    "g": 65,
    "b": 141
  },
  "hsl": {
    "h": 262.105,
    "s": 36.893,
    "l": 40.392
  },
  "oklch": {
    "l": 0.44367,
    "c": 0.12201,
    "h": 298.3
  },
  "luminance": 0.08031
}

Semantic roles & 50–950 ramp

primary
#5D418D
secondary
#9CB079
accent
#CD5BA3
background
#F8F7FA
surface
#F0EDF4
border
#CBC8CE
text
#0C0810
muted
#7D7B7F

Preview Lab

Preview with #5D418D

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

Preview Lab → · Contrast checker → · Palette generator →

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