#511C7C#511C7C

#511C7C is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.153 H 304.9°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#511C7C
RGBrgb(81, 28, 124)
HSLhsl(273, 63%, 30%)
HSVhsv(273, 77%, 49%)
CMYKcmyk(34.7%, 77.4%, 0%, 51.4%)
CIE-LABlab(23.79, 42.45, -44.04)
CIE-LCHlch(23.79, 61.17, 313.94°)
OKLaboklab(36.21% 0.0874 -0.1254)
OKLCHoklch(36.21% 0.153 304.9)
XYZxyz(7.4459, 4.0351, 19.4515)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C7C #477C1C
analogous
#211C7C #511C7C #7C1C77
triadic
#511C7C #7C511C #1C7C51
tetradic
#511C7C #7C211C #477C1C #1C777C
square
#511C7C #7C211C #477C1C #1C777C
split-complementary
#511C7C #777C1C #1C7C21
monochromatic
#100619 #30114A #511C7C #7227AE #913FD4

Accessibility & contrast

On white

11.62
#511C7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#511C7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511C7C
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C7C#FFFFFF#000000##FFFFFF
##511C7C1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#00397A
Tritanopia (blue-blind)
#49344B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #511c7c;
/* rgb */ color: rgb(81, 28, 124);
/* oklch */ color: oklch(36.2% 0.153 304.9);
Tailwind
colors: {
  custom: {
    50: '#865ea3',
    500: '#511c7c',
    950: '#000000',
  },
}
SCSS
$custom: #511c7c;
$custom-light: #865ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#511c7c",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 124
  },
  "hsl": {
    "h": 273.125,
    "s": 63.158,
    "l": 29.804
  },
  "oklch": {
    "l": 0.36207,
    "c": 0.15283,
    "h": 304.9
  },
  "luminance": 0.04035
}

Semantic roles & 50–950 ramp

primary
#511C7C
secondary
#74B044
accent
#E6428B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #511C7C

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

Preview Lab → · Contrast checker → · Palette generator →

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