#511E67#511E67

#511E67 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 34.8% C 0.127 H 313.9°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#511E67
RGBrgb(81, 30, 103)
HSLhsl(282, 55%, 26%)
HSVhsv(282, 71%, 40%)
CMYKcmyk(21.4%, 70.9%, 0%, 59.6%)
CIE-LABlab(22.50, 36.44, -32.61)
CIE-LCHlch(22.50, 48.90, 318.18°)
OKLaboklab(34.78% 0.0884 -0.0918)
OKLCHoklch(34.78% 0.127 313.9)
XYZxyz(6.3054, 3.6573, 13.2031)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E67 #34671E
analogous
#2C1E67 #511E67 #671E58
triadic
#511E67 #67511E #1E6751
tetradic
#511E67 #672C1E #34671E #1E5867
square
#511E67 #672C1E #34671E #1E5867
split-complementary
#511E67 #58671E #1E672C
monochromatic
#130718 #2C1038 #511E67 #762C96 #9B3AC6

Accessibility & contrast

On white

12.13
#511E67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#511E67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511E67
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E67#FFFFFF#000000##FFFFFF
##511E671.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003369
Deuteranopia (green-blind)
#1A3765
Tritanopia (blue-blind)
#4F2C40
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #511e67;
/* rgb */ color: rgb(81, 30, 103);
/* oklch */ color: oklch(34.8% 0.127 313.9);
Tailwind
colors: {
  custom: {
    50: '#855e93',
    500: '#511e67',
    950: '#000000',
  },
}
SCSS
$custom: #511e67;
$custom-light: #855e93;
$custom-dark: #000000;
JSON
{
  "hex": "#511e67",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 103
  },
  "hsl": {
    "h": 281.918,
    "s": 54.887,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34784,
    "c": 0.12743,
    "h": 313.9
  },
  "luminance": 0.03657
}

Semantic roles & 50–950 ramp

primary
#511E67
secondary
#5F9C45
accent
#DE4A76
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #511E67

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

Preview Lab → · Contrast checker → · Palette generator →

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