#511581#511581

#511581 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.165 H 303.9°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#511581
RGBrgb(81, 21, 129)
HSLhsl(273, 72%, 29%)
HSVhsv(273, 84%, 51%)
CMYKcmyk(37.2%, 83.7%, 0%, 49.4%)
CIE-LABlab(23.24, 46.49, -48.10)
CIE-LCHlch(23.24, 66.90, 314.02°)
OKLaboklab(35.96% 0.0922 -0.1372)
OKLCHoklch(35.96% 0.165 303.9)
XYZxyz(7.6230, 3.8707, 21.1101)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511581 #458115
analogous
#1B1581 #511581 #81157B
triadic
#511581 #815115 #158151
tetradic
#511581 #811B15 #458115 #157B81
square
#511581 #811B15 #458115 #157B81
split-complementary
#511581 #7B8115 #15811B
monochromatic
#11041A #300C4C #511581 #721EB6 #9233DE

Accessibility & contrast

On white

11.84
#511581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#511581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511581
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511581#FFFFFF#000000##FFFFFF
##5115811.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#00377F
Tritanopia (blue-blind)
#47334C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #511581;
/* rgb */ color: rgb(81, 21, 129);
/* oklch */ color: oklch(36.0% 0.165 303.9);
Tailwind
colors: {
  custom: {
    50: '#875ba6',
    500: '#511581',
    950: '#000000',
  },
}
SCSS
$custom: #511581;
$custom-light: #875ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#511581",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 273.333,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35958,
    "c": 0.16535,
    "h": 303.9
  },
  "luminance": 0.03871
}

Semantic roles & 50–950 ramp

primary
#511581
secondary
#72B63C
accent
#EF398A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #511581

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

Preview Lab → · Contrast checker → · Palette generator →

#511581 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva