#511381#511381

#511381 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.8% C 0.167 H 304.1°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#511381
RGBrgb(81, 19, 129)
HSLhsl(274, 74%, 29%)
HSVhsv(274, 85%, 51%)
CMYKcmyk(37.2%, 85.3%, 0%, 49.4%)
CIE-LABlab(23.00, 47.19, -48.49)
CIE-LCHlch(23.00, 67.67, 314.22°)
OKLaboklab(35.79% 0.0937 -0.1384)
OKLCHoklch(35.79% 0.167 304.1)
XYZxyz(7.5877, 3.8001, 21.0984)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511381 #438113
analogous
#1A1381 #511381 #81137A
triadic
#511381 #815113 #138151
tetradic
#511381 #811A13 #438113 #137A81
square
#511381 #811A13 #438113 #137A81
split-complementary
#511381 #7A8113 #13811A
monochromatic
#11041B #300B4C #511381 #721BB6 #932EE0

Accessibility & contrast

On white

11.93
#511381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#511381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511381
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511381#FFFFFF#000000##FFFFFF
##5113811.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511381;
/* rgb */ color: rgb(81, 19, 129);
/* oklch */ color: oklch(35.8% 0.167 304.1);
Tailwind
colors: {
  custom: {
    50: '#875aa6',
    500: '#511381',
    950: '#000000',
  },
}
SCSS
$custom: #511381;
$custom-light: #875aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#511381",
  "rgb": {
    "r": 81,
    "g": 19,
    "b": 129
  },
  "hsl": {
    "h": 273.818,
    "s": 74.324,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35792,
    "c": 0.16712,
    "h": 304.1
  },
  "luminance": 0.038
}

Semantic roles & 50–950 ramp

primary
#511381
secondary
#70B63A
accent
#F13788
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #511381

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

Preview Lab → · Contrast checker → · Palette generator →

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