#5417A0#5417A0

#5417A0 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.4% C 0.195 H 295.7°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#5417A0
RGBrgb(84, 23, 160)
HSLhsl(267, 75%, 36%)
HSVhsv(267, 86%, 63%)
CMYKcmyk(47.5%, 85.6%, 0%, 37.3%)
CIE-LABlab(26.84, 53.79, -61.41)
CIE-LCHlch(26.84, 81.63, 311.22°)
OKLaboklab(39.43% 0.0846 -0.1762)
OKLCHoklch(39.43% 0.195 295.7)
XYZxyz(10.3060, 5.0354, 33.6798)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5417A0 #63A017
analogous
#171FA0 #5417A0 #9817A0
triadic
#5417A0 #A05417 #17A054
tetradic
#5417A0 #A0171F #63A017 #17A098
square
#5417A0 #A0171F #63A017 #17A098
split-complementary
#5417A0 #A09817 #1FA017
monochromatic
#1C0835 #380F6A #5417A0 #701FD6 #904CE5

Accessibility & contrast

On white

10.46
#5417A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5417A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5417A0
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5417A0#FFFFFF#000000##FFFFFF
##5417A01.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A4
Deuteranopia (green-blind)
#003D9E
Tritanopia (blue-blind)
#3E415E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5417a0;
/* rgb */ color: rgb(84, 23, 160);
/* oklch */ color: oklch(39.4% 0.195 295.7);
Tailwind
colors: {
  custom: {
    50: '#8d5fbd',
    500: '#5417a0',
    950: '#000000',
  },
}
SCSS
$custom: #5417a0;
$custom-light: #8d5fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#5417a0",
  "rgb": {
    "r": 84,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 266.715,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39427,
    "c": 0.19544,
    "h": 295.7
  },
  "luminance": 0.05036
}

Semantic roles & 50–950 ramp

primary
#5417A0
secondary
#90C74C
accent
#F1369E
background
#F9F5FB
surface
#F1EAF7
border
#CBC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #5417A0

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

Preview Lab → · Contrast checker → · Palette generator →

#5417A0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva