#511E7A#511E7A

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

Color values

HEX#511E7A
RGBrgb(81, 30, 122)
HSLhsl(273, 61%, 30%)
HSVhsv(273, 75%, 48%)
CMYKcmyk(33.6%, 75.4%, 0%, 52.2%)
CIE-LABlab(23.94, 41.04, -42.52)
CIE-LCHlch(23.94, 59.09, 313.99°)
OKLaboklab(36.27% 0.0858 -0.1209)
OKLCHoklch(36.27% 0.148 305.4)
XYZxyz(7.3697, 4.0831, 18.8084)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E7A #477A1E
analogous
#231E7A #511E7A #7A1E75
triadic
#511E7A #7A511E #1E7A51
tetradic
#511E7A #7A231E #477A1E #1E757A
square
#511E7A #7A231E #477A1E #1E757A
split-complementary
#511E7A #757A1E #1E7A23
monochromatic
#100619 #301249 #511E7A #722AAB #9142D0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##511E7A#FFFFFF#000000##FFFFFF
##511E7A1.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)
#00387D
Deuteranopia (green-blind)
#003978
Tritanopia (blue-blind)
#49344A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #511e7a;
/* rgb */ color: rgb(81, 30, 122);
/* oklch */ color: oklch(36.3% 0.148 305.4);
Tailwind
colors: {
  custom: {
    50: '#865fa1',
    500: '#511e7a',
    950: '#000000',
  },
}
SCSS
$custom: #511e7a;
$custom-light: #865fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#511e7a",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 122
  },
  "hsl": {
    "h": 273.261,
    "s": 60.526,
    "l": 29.804
  },
  "oklch": {
    "l": 0.36267,
    "c": 0.14825,
    "h": 305.4
  },
  "luminance": 0.04083
}

Semantic roles & 50–950 ramp

primary
#511E7A
secondary
#74AE46
accent
#E4448B
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #511E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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