#511B9E#511B9E

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

Color values

HEX#511B9E
RGBrgb(81, 27, 158)
HSLhsl(265, 71%, 36%)
HSVhsv(265, 83%, 62%)
CMYKcmyk(48.7%, 82.9%, 0%, 38%)
CIE-LABlab(26.74, 51.47, -60.36)
CIE-LCHlch(26.74, 79.32, 310.45°)
OKLaboklab(39.22% 0.0781 -0.1732)
OKLCHoklch(39.22% 0.19 294.3)
XYZxyz(9.9551, 5.0015, 32.7820)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B9E #689E1B
analogous
#1B269E #511B9E #931B9E
triadic
#511B9E #9E511B #1B9E51
tetradic
#511B9E #9E1B26 #689E1B #1B9E93
square
#511B9E #9E1B26 #689E1B #1B9E93
split-complementary
#511B9E #9E931B #269E1B
monochromatic
#1B0935 #36126A #511B9E #6C24D2 #8D52E1

Accessibility & contrast

On white

10.50
#511B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#511B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B9E
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B9E#FFFFFF#000000##FFFFFF
##511B9E1.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A1
Deuteranopia (green-blind)
#003D9C
Tritanopia (blue-blind)
#39425E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #511b9e;
/* rgb */ color: rgb(81, 27, 158);
/* oklch */ color: oklch(39.2% 0.190 294.3);
Tailwind
colors: {
  custom: {
    50: '#8a60bc',
    500: '#511b9e',
    950: '#000000',
  },
}
SCSS
$custom: #511b9e;
$custom-light: #8a60bc;
$custom-dark: #000000;
JSON
{
  "hex": "#511b9e",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 158
  },
  "hsl": {
    "h": 264.733,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39215,
    "c": 0.19003,
    "h": 294.3
  },
  "luminance": 0.05002
}

Semantic roles & 50–950 ramp

primary
#511B9E
secondary
#95C451
accent
#EE3AA4
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #511B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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