#511A6D#511A6D

#511A6D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.139 H 311.5°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#511A6D
RGBrgb(81, 26, 109)
HSLhsl(280, 61%, 26%)
HSVhsv(280, 76%, 43%)
CMYKcmyk(25.7%, 76.1%, 0%, 57.3%)
CIE-LABlab(22.28, 39.73, -36.87)
CIE-LCHlch(22.28, 54.20, 317.13°)
OKLaboklab(34.76% 0.0924 -0.1043)
OKLCHoklch(34.76% 0.139 311.5)
XYZxyz(6.5225, 3.5924, 14.8148)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A6D #366D1A
analogous
#281A6D #511A6D #6D1A60
triadic
#511A6D #6D511A #1A6D51
tetradic
#511A6D #6D281A #366D1A #1A606D
square
#511A6D #6D281A #366D1A #1A606D
split-complementary
#511A6D #606D1A #1A6D28
monochromatic
#120619 #2C0E3C #511A6D #76269E #9A33CE

Accessibility & contrast

On white

12.22
#511A6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#511A6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A6D
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A6D#FFFFFF#000000##FFFFFF
##511A6D1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336F
Deuteranopia (green-blind)
#0E366B
Tritanopia (blue-blind)
#4D2D42
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511a6d;
/* rgb */ color: rgb(81, 26, 109);
/* oklch */ color: oklch(34.8% 0.139 311.5);
Tailwind
colors: {
  custom: {
    50: '#855c97',
    500: '#511a6d',
    950: '#000000',
  },
}
SCSS
$custom: #511a6d;
$custom-light: #855c97;
$custom-dark: #000000;
JSON
{
  "hex": "#511a6d",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 109
  },
  "hsl": {
    "h": 279.759,
    "s": 61.481,
    "l": 26.471
  },
  "oklch": {
    "l": 0.34761,
    "c": 0.13932,
    "h": 311.5
  },
  "luminance": 0.03592
}

Semantic roles & 50–950 ramp

primary
#511A6D
secondary
#62A241
accent
#E5437A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511A6D

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

Preview Lab → · Contrast checker → · Palette generator →

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