#511E7B#511E7B

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

Color values

HEX#511E7B
RGBrgb(81, 30, 123)
HSLhsl(273, 61%, 30%)
HSVhsv(273, 76%, 48%)
CMYKcmyk(34.1%, 75.6%, 0%, 51.8%)
CIE-LABlab(24.03, 41.29, -43.02)
CIE-LCHlch(24.03, 59.63, 313.82°)
OKLaboklab(36.35% 0.0856 -0.1224)
OKLCHoklch(36.35% 0.149 305)
XYZxyz(7.4320, 4.1080, 19.1364)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E7B #487B1E
analogous
#221E7B #511E7B #7B1E77
triadic
#511E7B #7B511E #1E7B51
tetradic
#511E7B #7B221E #487B1E #1E777B
square
#511E7B #7B221E #487B1E #1E777B
split-complementary
#511E7B #777B1E #1E7B22
monochromatic
#100619 #31124A #511E7B #712AAC #9142D1

Accessibility & contrast

On white

11.53
#511E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511E7B
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E7B#FFFFFF#000000##FFFFFF
##511E7B1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387E
Deuteranopia (green-blind)
#003979
Tritanopia (blue-blind)
#49344B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #511e7b;
/* rgb */ color: rgb(81, 30, 123);
/* oklch */ color: oklch(36.4% 0.149 305.0);
Tailwind
colors: {
  custom: {
    50: '#865fa2',
    500: '#511e7b',
    950: '#000000',
  },
}
SCSS
$custom: #511e7b;
$custom-light: #865fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#511e7b",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 123
  },
  "hsl": {
    "h": 272.903,
    "s": 60.784,
    "l": 30
  },
  "oklch": {
    "l": 0.3635,
    "c": 0.14935,
    "h": 305
  },
  "luminance": 0.04108
}

Semantic roles & 50–950 ramp

primary
#511E7B
secondary
#75AE46
accent
#E4448C
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #511E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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