#511E7F#511E7F

#511E7F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.154 H 303.5°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#511E7F
RGBrgb(81, 30, 127)
HSLhsl(272, 62%, 31%)
HSVhsv(272, 76%, 50%)
CMYKcmyk(36.2%, 76.4%, 0%, 50.2%)
CIE-LABlab(24.35, 42.29, -45.02)
CIE-LCHlch(24.35, 61.77, 313.21°)
OKLaboklab(36.69% 0.0848 -0.1282)
OKLCHoklch(36.69% 0.154 303.5)
XYZxyz(7.6875, 4.2102, 20.4822)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E7F #4C7F1E
analogous
#201E7F #511E7F #7F1E7C
triadic
#511E7F #7F511E #1E7F51
tetradic
#511E7F #7F201E #4C7F1E #1E7C7F
square
#511E7F #7F201E #4C7F1E #1E7C7F
split-complementary
#511E7F #7C7F1E #1E7F20
monochromatic
#12071C #31124D #511E7F #712AB1 #8F44D3

Accessibility & contrast

On white

11.40
#511E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#511E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511E7F
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E7F#FFFFFF#000000##FFFFFF
##511E7F1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#003A7D
Tritanopia (blue-blind)
#48364D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #511e7f;
/* rgb */ color: rgb(81, 30, 127);
/* oklch */ color: oklch(36.7% 0.154 303.5);
Tailwind
colors: {
  custom: {
    50: '#875fa5',
    500: '#511e7f',
    950: '#000000',
  },
}
SCSS
$custom: #511e7f;
$custom-light: #875fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#511e7f",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 127
  },
  "hsl": {
    "h": 271.546,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36685,
    "c": 0.15373,
    "h": 303.5
  },
  "luminance": 0.0421
}

Semantic roles & 50–950 ramp

primary
#511E7F
secondary
#7AB247
accent
#E54390
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #511E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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