#511D7C#511D7C

#511D7C is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.152 H 304.7°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#511D7C
RGBrgb(81, 29, 124)
HSLhsl(273, 62%, 30%)
HSVhsv(273, 77%, 49%)
CMYKcmyk(34.7%, 76.6%, 0%, 51.4%)
CIE-LABlab(23.94, 42.00, -43.79)
CIE-LCHlch(23.94, 60.67, 313.81°)
OKLaboklab(36.32% 0.0864 -0.1246)
OKLCHoklch(36.32% 0.152 304.7)
XYZxyz(7.4700, 4.0833, 19.4595)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D7C #487C1D
analogous
#211D7C #511D7C #7C1D78
triadic
#511D7C #7C511D #1D7C51
tetradic
#511D7C #7C211D #487C1D #1D787C
square
#511D7C #7C211D #487C1D #1D787C
split-complementary
#511D7C #787C1D #1D7C21
monochromatic
#100619 #31114A #511D7C #7129AE #9141D3

Accessibility & contrast

On white

11.56
#511D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#511D7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511D7C
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D7C#FFFFFF#000000##FFFFFF
##511D7C1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511d7c;
/* rgb */ color: rgb(81, 29, 124);
/* oklch */ color: oklch(36.3% 0.152 304.7);
Tailwind
colors: {
  custom: {
    50: '#865fa3',
    500: '#511d7c',
    950: '#000000',
  },
}
SCSS
$custom: #511d7c;
$custom-light: #865fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#511d7c",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 124
  },
  "hsl": {
    "h": 272.842,
    "s": 62.092,
    "l": 30
  },
  "oklch": {
    "l": 0.36319,
    "c": 0.15165,
    "h": 304.7
  },
  "luminance": 0.04083
}

Semantic roles & 50–950 ramp

primary
#511D7C
secondary
#75B045
accent
#E5438C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #511D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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