#511481#511481

#511481 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.9% C 0.166 H 304.0°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#511481
RGBrgb(81, 20, 129)
HSLhsl(274, 73%, 29%)
HSVhsv(274, 84%, 51%)
CMYKcmyk(37.2%, 84.5%, 0%, 49.4%)
CIE-LABlab(23.12, 46.85, -48.30)
CIE-LCHlch(23.12, 67.29, 314.12°)
OKLaboklab(35.87% 0.093 -0.1378)
OKLCHoklch(35.87% 0.166 304)
XYZxyz(7.6050, 3.8346, 21.1041)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511481 #448114
analogous
#1B1481 #511481 #81147B
triadic
#511481 #815114 #148151
tetradic
#511481 #811B14 #448114 #147B81
square
#511481 #811B14 #448114 #147B81
split-complementary
#511481 #7B8114 #14811B
monochromatic
#11041A #300C4C #511481 #721CB6 #9230DF

Accessibility & contrast

On white

11.88
#511481 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511481
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511481#FFFFFF#000000##FFFFFF
##5114811.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.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: #511481;
/* rgb */ color: rgb(81, 20, 129);
/* oklch */ color: oklch(35.9% 0.166 304.0);
Tailwind
colors: {
  custom: {
    50: '#875ba6',
    500: '#511481',
    950: '#000000',
  },
}
SCSS
$custom: #511481;
$custom-light: #875ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#511481",
  "rgb": {
    "r": 81,
    "g": 20,
    "b": 129
  },
  "hsl": {
    "h": 273.578,
    "s": 73.154,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35873,
    "c": 0.16625,
    "h": 304
  },
  "luminance": 0.03835
}

Semantic roles & 50–950 ramp

primary
#511481
secondary
#71B63B
accent
#F03889
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #511481

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

Preview Lab → · Contrast checker → · Palette generator →

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