#511E9B#511E9B

#511E9B is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.2% C 0.184 H 294.7°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#511E9B
RGBrgb(81, 30, 155)
HSLhsl(264, 68%, 36%)
HSVhsv(264, 81%, 61%)
CMYKcmyk(47.7%, 80.6%, 0%, 39.2%)
CIE-LABlab(26.86, 49.50, -58.33)
CIE-LCHlch(26.86, 76.50, 310.32°)
OKLaboklab(39.21% 0.077 -0.1673)
OKLCHoklch(39.21% 0.184 294.7)
XYZxyz(9.7724, 5.0442, 31.4627)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E9B #689B1E
analogous
#1E2A9B #511E9B #901E9B
triadic
#511E9B #9B511E #1E9B51
tetradic
#511E9B #9B1E2A #689B1E #1E9B90
square
#511E9B #9B1E2A #689B1E #1E9B90
split-complementary
#511E9B #9B901E #2A9B1E
monochromatic
#1B0A34 #361468 #511E9B #6C28CE #8D55DE

Accessibility & contrast

On white

10.45
#511E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#511E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511E9B
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E9B#FFFFFF#000000##FFFFFF
##511E9B1.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419E
Deuteranopia (green-blind)
#003D99
Tritanopia (blue-blind)
#3B425D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #511e9b;
/* rgb */ color: rgb(81, 30, 155);
/* oklch */ color: oklch(39.2% 0.184 294.7);
Tailwind
colors: {
  custom: {
    50: '#8a61ba',
    500: '#511e9b',
    950: '#000000',
  },
}
SCSS
$custom: #511e9b;
$custom-light: #8a61ba;
$custom-dark: #000000;
JSON
{
  "hex": "#511e9b",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 155
  },
  "hsl": {
    "h": 264.48,
    "s": 67.568,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39211,
    "c": 0.18417,
    "h": 294.7
  },
  "luminance": 0.05044
}

Semantic roles & 50–950 ramp

primary
#511E9B
secondary
#95C253
accent
#EA3DA4
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0D0512
muted
#7D7981

Preview Lab

Preview with #511E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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