#5317A0#5317A0

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

Color values

HEX#5317A0
RGBrgb(83, 23, 160)
HSLhsl(266, 75%, 36%)
HSVhsv(266, 86%, 63%)
CMYKcmyk(48.1%, 85.6%, 0%, 37.3%)
CIE-LABlab(26.71, 53.66, -61.62)
CIE-LCHlch(26.71, 81.72, 311.05°)
OKLaboklab(39.31% 0.0831 -0.1768)
OKLCHoklch(39.31% 0.195 295.2)
XYZxyz(10.2171, 4.9896, 33.6757)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5317A0 #64A017
analogous
#1720A0 #5317A0 #9717A0
triadic
#5317A0 #A05317 #17A053
tetradic
#5317A0 #A01720 #64A017 #17A097
square
#5317A0 #A01720 #64A017 #17A097
split-complementary
#5317A0 #A09717 #20A017
monochromatic
#1B0835 #370F6A #5317A0 #6F1FD6 #8F4CE5

Accessibility & contrast

On white

10.51
#5317A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5317A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5317A0
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5317A0#FFFFFF#000000##FFFFFF
##5317A01.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5317a0;
/* rgb */ color: rgb(83, 23, 160);
/* oklch */ color: oklch(39.3% 0.195 295.2);
Tailwind
colors: {
  custom: {
    50: '#8c5ebd',
    500: '#5317a0',
    950: '#000000',
  },
}
SCSS
$custom: #5317a0;
$custom-light: #8c5ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#5317a0",
  "rgb": {
    "r": 83,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 266.277,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39308,
    "c": 0.19536,
    "h": 295.2
  },
  "luminance": 0.0499
}

Semantic roles & 50–950 ramp

primary
#5317A0
secondary
#91C74C
accent
#F136A0
background
#F9F5FB
surface
#F1EAF7
border
#CBC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #5317A0

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

Preview Lab → · Contrast checker → · Palette generator →

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