#511E93#511E93

#511E93 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.176 H 296.9°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#511E93
RGBrgb(81, 30, 147)
HSLhsl(266, 66%, 35%)
HSVhsv(266, 80%, 58%)
CMYKcmyk(44.9%, 79.6%, 0%, 42.4%)
CIE-LABlab(26.11, 47.41, -54.64)
CIE-LCHlch(26.11, 72.34, 310.95°)
OKLaboklab(38.46% 0.0795 -0.1565)
OKLCHoklch(38.46% 0.176 296.9)
XYZxyz(9.1227, 4.7843, 28.0409)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E93 #60931E
analogous
#1E2593 #511E93 #8C1E93
triadic
#511E93 #93511E #1E9351
tetradic
#511E93 #931E25 #60931E #1E938C
square
#511E93 #931E25 #60931E #1E938C
split-complementary
#511E93 #938C1E #25931E
monochromatic
#19092D #351460 #511E93 #6D28C6 #8D50DB

Accessibility & contrast

On white

10.73
#511E93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#511E93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511E93
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E93#FFFFFF#000000##FFFFFF
##511E931.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E96
Deuteranopia (green-blind)
#003C91
Tritanopia (blue-blind)
#3F3E58
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #511e93;
/* rgb */ color: rgb(81, 30, 147);
/* oklch */ color: oklch(38.5% 0.176 296.9);
Tailwind
colors: {
  custom: {
    50: '#8960b4',
    500: '#511e93',
    950: '#000000',
  },
}
SCSS
$custom: #511e93;
$custom-light: #8960b4;
$custom-dark: #000000;
JSON
{
  "hex": "#511e93",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 147
  },
  "hsl": {
    "h": 266.154,
    "s": 66.102,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38461,
    "c": 0.17553,
    "h": 296.9
  },
  "luminance": 0.04784
}

Semantic roles & 50–950 ramp

primary
#511E93
secondary
#8EBE4F
accent
#E93F9F
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #511E93

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

Preview Lab → · Contrast checker → · Palette generator →

#511E93 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva