#5117A0#5117A0

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

Color values

HEX#5117A0
RGBrgb(81, 23, 160)
HSLhsl(265, 75%, 36%)
HSVhsv(265, 86%, 63%)
CMYKcmyk(49.4%, 85.6%, 0%, 37.3%)
CIE-LABlab(26.45, 53.42, -62.06)
CIE-LCHlch(26.45, 81.88, 310.72°)
OKLaboklab(39.07% 0.0798 -0.1782)
OKLCHoklch(39.07% 0.195 294.1)
XYZxyz(10.0431, 4.8999, 33.6675)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5117A0 #66A017
analogous
#1722A0 #5117A0 #9517A0
triadic
#5117A0 #A05117 #17A051
tetradic
#5117A0 #A01722 #66A017 #17A095
square
#5117A0 #A01722 #66A017 #17A095
split-complementary
#5117A0 #A09517 #22A017
monochromatic
#1B0835 #360F6A #5117A0 #6C1FD6 #8D4CE5

Accessibility & contrast

On white

10.61
#5117A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5117A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5117A0
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5117A0#FFFFFF#000000##FFFFFF
##5117A01.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5117a0;
/* rgb */ color: rgb(81, 23, 160);
/* oklch */ color: oklch(39.1% 0.195 294.1);
Tailwind
colors: {
  custom: {
    50: '#8b5ebd',
    500: '#5117a0',
    950: '#000000',
  },
}
SCSS
$custom: #5117a0;
$custom-light: #8b5ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#5117a0",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 265.401,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39075,
    "c": 0.19523,
    "h": 294.1
  },
  "luminance": 0.049
}

Semantic roles & 50–950 ramp

primary
#5117A0
secondary
#93C74C
accent
#F136A2
background
#F9F5FB
surface
#F1EAF7
border
#CBC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #5117A0

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

Preview Lab → · Contrast checker → · Palette generator →

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