#5116A1#5116A1

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

Color values

HEX#5116A1
RGBrgb(81, 22, 161)
HSLhsl(265, 76%, 36%)
HSVhsv(265, 86%, 63%)
CMYKcmyk(49.7%, 86.3%, 0%, 36.9%)
CIE-LABlab(26.44, 54.00, -62.68)
CIE-LCHlch(26.44, 82.74, 310.74°)
OKLaboklab(39.1% 0.08 -0.18)
OKLCHoklch(39.1% 0.197 294)
XYZxyz(10.1115, 4.8960, 34.1236)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5116A1 #66A116
analogous
#1620A1 #5116A1 #9616A1
triadic
#5116A1 #A15116 #16A151
tetradic
#5116A1 #A11620 #66A116 #16A196
square
#5116A1 #A11620 #66A116 #16A196
split-complementary
#5116A1 #A19616 #20A116
monochromatic
#1B0735 #360F6B #5116A1 #6C1DD7 #8D4BE6

Accessibility & contrast

On white

10.61
#5116A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5116A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5116A1
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5116A1#FFFFFF#000000##FFFFFF
##5116A11.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)
#0040A5
Deuteranopia (green-blind)
#003C9F
Tritanopia (blue-blind)
#38415F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5116a1;
/* rgb */ color: rgb(81, 22, 161);
/* oklch */ color: oklch(39.1% 0.197 294.0);
Tailwind
colors: {
  custom: {
    50: '#8b5ebe',
    500: '#5116a1',
    950: '#000000',
  },
}
SCSS
$custom: #5116a1;
$custom-light: #8b5ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#5116a1",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 161
  },
  "hsl": {
    "h": 265.468,
    "s": 75.956,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39098,
    "c": 0.19698,
    "h": 294
  },
  "luminance": 0.04896
}

Semantic roles & 50–950 ramp

primary
#5116A1
secondary
#93C84B
accent
#F335A2
background
#F9F5FB
surface
#F1EAF7
border
#CBC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #5116A1

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

Preview Lab → · Contrast checker → · Palette generator →

#5116A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva