#511E8F#511E8F

#511E8F is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.171 H 298.1°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#511E8F
RGBrgb(81, 30, 143)
HSLhsl(267, 65%, 34%)
HSVhsv(267, 79%, 56%)
CMYKcmyk(43.4%, 79%, 0%, 43.9%)
CIE-LABlab(25.75, 46.38, -52.76)
CIE-LCHlch(25.75, 70.25, 311.32°)
OKLaboklab(38.09% 0.0807 -0.151)
OKLCHoklch(38.09% 0.171 298.1)
XYZxyz(8.8143, 4.6609, 26.4165)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E8F #5C8F1E
analogous
#1E238F #511E8F #8A1E8F
triadic
#511E8F #8F511E #1E8F51
tetradic
#511E8F #8F1E23 #5C8F1E #1E8F8A
square
#511E8F #8F1E23 #5C8F1E #1E8F8A
split-complementary
#511E8F #8F8A1E #238F1E
monochromatic
#18092A #34135C #511E8F #6E29C2 #8D4EDA

Accessibility & contrast

On white

10.87
#511E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#511E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511E8F
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E8F#FFFFFF#000000##FFFFFF
##511E8F1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#003C8D
Tritanopia (blue-blind)
#413D56
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #511e8f;
/* rgb */ color: rgb(81, 30, 143);
/* oklch */ color: oklch(38.1% 0.171 298.1);
Tailwind
colors: {
  custom: {
    50: '#8860b1',
    500: '#511e8f',
    950: '#000000',
  },
}
SCSS
$custom: #511e8f;
$custom-light: #8860b1;
$custom-dark: #000000;
JSON
{
  "hex": "#511e8f",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 143
  },
  "hsl": {
    "h": 267.08,
    "s": 65.318,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38094,
    "c": 0.17119,
    "h": 298.1
  },
  "luminance": 0.04661
}

Semantic roles & 50–950 ramp

primary
#511E8F
secondary
#8ABC4C
accent
#E8409C
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #511E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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