#511E7D#511E7D

#511E7D is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.152 H 304.2°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#511E7D
RGBrgb(81, 30, 125)
HSLhsl(272, 61%, 30%)
HSVhsv(272, 76%, 49%)
CMYKcmyk(35.2%, 76%, 0%, 51%)
CIE-LABlab(24.19, 41.79, -44.02)
CIE-LCHlch(24.19, 60.70, 313.51°)
OKLaboklab(36.52% 0.0852 -0.1253)
OKLCHoklch(36.52% 0.152 304.2)
XYZxyz(7.5584, 4.1586, 19.8025)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E7D #4A7D1E
analogous
#221E7D #511E7D #7D1E79
triadic
#511E7D #7D511E #1E7D51
tetradic
#511E7D #7D221E #4A7D1E #1E797D
square
#511E7D #7D221E #4A7D1E #1E797D
split-complementary
#511E7D #797D1E #1E7D22
monochromatic
#11061A #31124C #511E7D #712AAE #9043D2

Accessibility & contrast

On white

11.46
#511E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#511E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511E7D
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E7D#FFFFFF#000000##FFFFFF
##511E7D1.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#00397B
Tritanopia (blue-blind)
#48354C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #511e7d;
/* rgb */ color: rgb(81, 30, 125);
/* oklch */ color: oklch(36.5% 0.152 304.2);
Tailwind
colors: {
  custom: {
    50: '#865fa3',
    500: '#511e7d',
    950: '#000000',
  },
}
SCSS
$custom: #511e7d;
$custom-light: #865fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#511e7d",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 125
  },
  "hsl": {
    "h": 272.211,
    "s": 61.29,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36517,
    "c": 0.15154,
    "h": 304.2
  },
  "luminance": 0.04159
}

Semantic roles & 50–950 ramp

primary
#511E7D
secondary
#77B046
accent
#E4438E
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #511E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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