#511B7B#511B7B

#511B7B is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.153 H 305.4°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#511B7B
RGBrgb(81, 27, 123)
HSLhsl(274, 64%, 29%)
HSVhsv(274, 78%, 48%)
CMYKcmyk(34.1%, 78%, 0%, 51.8%)
CIE-LABlab(23.55, 42.64, -43.79)
CIE-LCHlch(23.55, 61.12, 314.24°)
OKLaboklab(36.01% 0.0886 -0.1246)
OKLCHoklch(36.01% 0.153 305.4)
XYZxyz(7.3596, 3.9633, 19.1123)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B7B #457B1B
analogous
#211B7B #511B7B #7B1B75
triadic
#511B7B #7B511B #1B7B51
tetradic
#511B7B #7B211B #457B1B #1B757B
square
#511B7B #7B211B #457B1B #1B757B
split-complementary
#511B7B #757B1B #1B7B21
monochromatic
#110619 #301049 #511B7B #7226AD #923CD4

Accessibility & contrast

On white

11.71
#511B7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#511B7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B7B
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B7B#FFFFFF#000000##FFFFFF
##511B7B1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#003879
Tritanopia (blue-blind)
#49334A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #511b7b;
/* rgb */ color: rgb(81, 27, 123);
/* oklch */ color: oklch(36.0% 0.153 305.4);
Tailwind
colors: {
  custom: {
    50: '#865ea2',
    500: '#511b7b',
    950: '#000000',
  },
}
SCSS
$custom: #511b7b;
$custom-light: #865ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#511b7b",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 123
  },
  "hsl": {
    "h": 273.75,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.36014,
    "c": 0.15293,
    "h": 305.4
  },
  "luminance": 0.03963
}

Semantic roles & 50–950 ramp

primary
#511B7B
secondary
#72AF43
accent
#E7418A
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #511B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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