#511C7E#511C7E

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

Color values

HEX#511C7E
RGBrgb(81, 28, 126)
HSLhsl(272, 64%, 30%)
HSVhsv(272, 78%, 49%)
CMYKcmyk(35.7%, 77.8%, 0%, 50.6%)
CIE-LABlab(23.95, 42.94, -45.04)
CIE-LCHlch(23.95, 62.23, 313.63°)
OKLaboklab(36.38% 0.087 -0.1283)
OKLCHoklch(36.38% 0.155 304.1)
XYZxyz(7.5736, 4.0862, 20.1243)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C7E #497E1C
analogous
#201C7E #511C7E #7E1C7A
triadic
#511C7E #7E511C #1C7E51
tetradic
#511C7E #7E201C #497E1C #1C7A7E
square
#511C7E #7E201C #497E1C #1C7A7E
split-complementary
#511C7E #7A7E1C #1C7E20
monochromatic
#11061A #31114C #511C7E #7127B0 #9040D5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##511C7E#FFFFFF#000000##FFFFFF
##511C7E1.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)
#003881
Deuteranopia (green-blind)
#00397C
Tritanopia (blue-blind)
#48354C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #511c7e;
/* rgb */ color: rgb(81, 28, 126);
/* oklch */ color: oklch(36.4% 0.155 304.1);
Tailwind
colors: {
  custom: {
    50: '#875ea4',
    500: '#511c7e',
    950: '#000000',
  },
}
SCSS
$custom: #511c7e;
$custom-light: #875ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#511c7e",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 126
  },
  "hsl": {
    "h": 272.449,
    "s": 63.636,
    "l": 30.196
  },
  "oklch": {
    "l": 0.36377,
    "c": 0.15499,
    "h": 304.1
  },
  "luminance": 0.04086
}

Semantic roles & 50–950 ramp

primary
#511C7E
secondary
#76B244
accent
#E7418D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #511C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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