#5017A0#5017A0

#5017A0 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 39.0% C 0.195 H 293.6°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#5017A0
RGBrgb(80, 23, 160)
HSLhsl(265, 75%, 36%)
HSVhsv(265, 86%, 63%)
CMYKcmyk(50%, 85.6%, 0%, 37.3%)
CIE-LABlab(26.32, 53.30, -62.27)
CIE-LCHlch(26.32, 81.96, 310.56°)
OKLaboklab(38.96% 0.0782 -0.1788)
OKLCHoklch(38.96% 0.195 293.6)
XYZxyz(9.9581, 4.8560, 33.6635)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5017A0 #67A017
analogous
#1722A0 #5017A0 #9417A0
triadic
#5017A0 #A05017 #17A050
tetradic
#5017A0 #A01722 #67A017 #17A094
square
#5017A0 #A01722 #67A017 #17A094
split-complementary
#5017A0 #A09417 #22A017
monochromatic
#1A0835 #350F6A #5017A0 #6B1FD6 #8C4CE5

Accessibility & contrast

On white

10.65
#5017A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5017A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5017A0
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5017A0#FFFFFF#000000##FFFFFF
##5017A01.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A4
Deuteranopia (green-blind)
#003C9E
Tritanopia (blue-blind)
#36415E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5017a0;
/* rgb */ color: rgb(80, 23, 160);
/* oklch */ color: oklch(39.0% 0.195 293.6);
Tailwind
colors: {
  custom: {
    50: '#8a5ebd',
    500: '#5017a0',
    950: '#000000',
  },
}
SCSS
$custom: #5017a0;
$custom-light: #8a5ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#5017a0",
  "rgb": {
    "r": 80,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 264.964,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38959,
    "c": 0.19519,
    "h": 293.6
  },
  "luminance": 0.04856
}

Semantic roles & 50–950 ramp

primary
#5017A0
secondary
#94C74C
accent
#F136A4
background
#F9F5FB
surface
#F1EAF7
border
#CBC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #5017A0

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

Preview Lab → · Contrast checker → · Palette generator →

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