#511573#511573

#511573 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.151 H 309.5°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#511573
RGBrgb(81, 21, 115)
HSLhsl(278, 69%, 27%)
HSVhsv(278, 82%, 45%)
CMYKcmyk(29.6%, 81.7%, 0%, 54.9%)
CIE-LABlab(22.03, 43.19, -41.15)
CIE-LCHlch(22.03, 59.66, 316.39°)
OKLaboklab(34.74% 0.0961 -0.1168)
OKLCHoklch(34.74% 0.151 309.5)
XYZxyz(6.7554, 3.5236, 16.5406)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511573 #377315
analogous
#221573 #511573 #731566
triadic
#511573 #735115 #157351
tetradic
#511573 #732215 #377315 #156673
square
#511573 #732215 #377315 #156673
split-complementary
#511573 #667315 #157322
monochromatic
#12051A #2D0C3F #511573 #751EA7 #992AD8

Accessibility & contrast

On white

12.32
#511573 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#511573 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511573
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511573#FFFFFF#000000##FFFFFF
##5115731.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003276
Deuteranopia (green-blind)
#003571
Tritanopia (blue-blind)
#4C2D44
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511573;
/* rgb */ color: rgb(81, 21, 115);
/* oklch */ color: oklch(34.7% 0.151 309.5);
Tailwind
colors: {
  custom: {
    50: '#865a9c',
    500: '#511573',
    950: '#000000',
  },
}
SCSS
$custom: #511573;
$custom-light: #865a9c;
$custom-dark: #000000;
JSON
{
  "hex": "#511573",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 115
  },
  "hsl": {
    "h": 278.298,
    "s": 69.118,
    "l": 26.667
  },
  "oklch": {
    "l": 0.34738,
    "c": 0.15128,
    "h": 309.5
  },
  "luminance": 0.03523
}

Semantic roles & 50–950 ramp

primary
#511573
secondary
#63A93B
accent
#EC3C7C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511573

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

Preview Lab → · Contrast checker → · Palette generator →

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