#511A7B#511A7B

#511A7B is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.154 H 305.6°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#511A7B
RGBrgb(81, 26, 123)
HSLhsl(274, 65%, 29%)
HSVhsv(274, 79%, 48%)
CMYKcmyk(34.1%, 78.9%, 0%, 51.8%)
CIE-LABlab(23.40, 43.07, -44.04)
CIE-LCHlch(23.40, 61.60, 314.36°)
OKLaboklab(35.91% 0.0896 -0.1253)
OKLCHoklch(35.91% 0.154 305.6)
XYZxyz(7.3371, 3.9182, 19.1048)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A7B #447B1A
analogous
#211A7B #511A7B #7B1A75
triadic
#511A7B #7B511A #1A7B51
tetradic
#511A7B #7B211A #447B1A #1A757B
square
#511A7B #7B211A #447B1A #1A757B
split-complementary
#511A7B #757B1A #1A7B21
monochromatic
#110519 #300F48 #511A7B #7225AE #923AD5

Accessibility & contrast

On white

11.77
#511A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#511A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A7B
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A7B#FFFFFF#000000##FFFFFF
##511A7B1.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#003879
Tritanopia (blue-blind)
#49324A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #511a7b;
/* rgb */ color: rgb(81, 26, 123);
/* oklch */ color: oklch(35.9% 0.154 305.6);
Tailwind
colors: {
  custom: {
    50: '#865da2',
    500: '#511a7b',
    950: '#000000',
  },
}
SCSS
$custom: #511a7b;
$custom-light: #865da2;
$custom-dark: #000000;
JSON
{
  "hex": "#511a7b",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 123
  },
  "hsl": {
    "h": 274.021,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35908,
    "c": 0.15407,
    "h": 305.6
  },
  "luminance": 0.03918
}

Semantic roles & 50–950 ramp

primary
#511A7B
secondary
#71AF42
accent
#E84089
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #511A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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