#511E6E#511E6E

#511E6E is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.135 H 310.5°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#511E6E
RGBrgb(81, 30, 110)
HSLhsl(278, 57%, 27%)
HSVhsv(278, 73%, 43%)
CMYKcmyk(26.4%, 72.7%, 0%, 56.9%)
CIE-LABlab(23.01, 38.10, -36.33)
CIE-LCHlch(23.01, 52.65, 316.36°)
OKLaboklab(35.31% 0.0877 -0.1027)
OKLCHoklch(35.31% 0.135 310.5)
XYZxyz(6.6715, 3.8038, 15.1316)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E6E #3B6E1E
analogous
#291E6E #511E6E #6E1E63
triadic
#511E6E #6E511E #1E6E51
tetradic
#511E6E #6E291E #3B6E1E #1E636E
square
#511E6E #6E291E #3B6E1E #1E636E
split-complementary
#511E6E #636E1E #1E6E29
monochromatic
#120718 #2E113E #511E6E #742B9E #973CCA

Accessibility & contrast

On white

11.93
#511E6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#511E6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511E6E
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E6E#FFFFFF#000000##FFFFFF
##511E6E1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003570
Deuteranopia (green-blind)
#12386C
Tritanopia (blue-blind)
#4D2F43
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #511e6e;
/* rgb */ color: rgb(81, 30, 110);
/* oklch */ color: oklch(35.3% 0.135 310.5);
Tailwind
colors: {
  custom: {
    50: '#855e98',
    500: '#511e6e',
    950: '#000000',
  },
}
SCSS
$custom: #511e6e;
$custom-light: #855e98;
$custom-dark: #000000;
JSON
{
  "hex": "#511e6e",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 110
  },
  "hsl": {
    "h": 278.25,
    "s": 57.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.35309,
    "c": 0.13508,
    "h": 310.5
  },
  "luminance": 0.03804
}

Semantic roles & 50–950 ramp

primary
#511E6E
secondary
#67A246
accent
#E0477F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #511E6E

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

Preview Lab → · Contrast checker → · Palette generator →

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