#511B81#511B81

#511B81 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.159 H 303.2°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#511B81
RGBrgb(81, 27, 129)
HSLhsl(272, 65%, 31%)
HSVhsv(272, 79%, 51%)
CMYKcmyk(37.2%, 79.1%, 0%, 49.4%)
CIE-LABlab(24.06, 44.12, -46.76)
CIE-LCHlch(24.06, 64.29, 313.33°)
OKLaboklab(36.53% 0.0872 -0.1334)
OKLCHoklch(36.53% 0.159 303.2)
XYZxyz(7.7468, 4.1182, 21.1514)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B81 #4B811B
analogous
#1E1B81 #511B81 #811B7E
triadic
#511B81 #81511B #1B8151
tetradic
#511B81 #811E1B #4B811B #1B7E81
square
#511B81 #811E1B #4B811B #1B7E81
split-complementary
#511B81 #7E811B #1B811E
monochromatic
#11061C #31104E #511B81 #7126B4 #903FD7

Accessibility & contrast

On white

11.52
#511B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#511B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B81
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B81#FFFFFF#000000##FFFFFF
##511B811.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003884
Deuteranopia (green-blind)
#00397F
Tritanopia (blue-blind)
#47354D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #511b81;
/* rgb */ color: rgb(81, 27, 129);
/* oklch */ color: oklch(36.5% 0.159 303.2);
Tailwind
colors: {
  custom: {
    50: '#875ea6',
    500: '#511b81',
    950: '#000000',
  },
}
SCSS
$custom: #511b81;
$custom-light: #875ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#511b81",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 129
  },
  "hsl": {
    "h": 271.765,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3653,
    "c": 0.15932,
    "h": 303.2
  },
  "luminance": 0.04118
}

Semantic roles & 50–950 ramp

primary
#511B81
secondary
#79B543
accent
#E83F8F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #511B81

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

Preview Lab → · Contrast checker → · Palette generator →

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