#511C8B#511C8B

#511C8B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.169 H 299.6°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#511C8B
RGBrgb(81, 28, 139)
HSLhsl(269, 66%, 33%)
HSVhsv(269, 80%, 55%)
CMYKcmyk(41.7%, 79.9%, 0%, 45.5%)
CIE-LABlab(25.09, 46.21, -51.35)
CIE-LCHlch(25.09, 69.08, 311.98°)
OKLaboklab(37.52% 0.0835 -0.1468)
OKLCHoklch(37.52% 0.169 299.6)
XYZxyz(8.4676, 4.4438, 24.8327)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C8B #568B1C
analogous
#1C1E8B #511C8B #891C8B
triadic
#511C8B #8B511C #1C8B51
tetradic
#511C8B #8B1C1E #568B1C #1C8B89
square
#511C8B #8B1C1E #568B1C #1C8B89
split-complementary
#511C8B #8B891C #1E8B1C
monochromatic
#160725 #331258 #511C8B #6F26BE #8D47DA

Accessibility & contrast

On white

11.12
#511C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#511C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511C8B
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C8B#FFFFFF#000000##FFFFFF
##511C8B1.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003B89
Tritanopia (blue-blind)
#433A53
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #511c8b;
/* rgb */ color: rgb(81, 28, 139);
/* oklch */ color: oklch(37.5% 0.169 299.6);
Tailwind
colors: {
  custom: {
    50: '#885fae',
    500: '#511c8b',
    950: '#000000',
  },
}
SCSS
$custom: #511c8b;
$custom-light: #885fae;
$custom-dark: #000000;
JSON
{
  "hex": "#511c8b",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 139
  },
  "hsl": {
    "h": 268.649,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37523,
    "c": 0.16894,
    "h": 299.6
  },
  "luminance": 0.04444
}

Semantic roles & 50–950 ramp

primary
#511C8B
secondary
#84BC47
accent
#E93E98
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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