#511E68#511E68

#511E68 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 34.9% C 0.129 H 313.4°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#511E68
RGBrgb(81, 30, 104)
HSLhsl(281, 55%, 26%)
HSVhsv(281, 71%, 41%)
CMYKcmyk(22.1%, 71.2%, 0%, 59.2%)
CIE-LABlab(22.58, 36.67, -33.14)
CIE-LCHlch(22.58, 49.43, 317.90°)
OKLaboklab(34.86% 0.0883 -0.0934)
OKLCHoklch(34.86% 0.129 313.4)
XYZxyz(6.3559, 3.6775, 13.4690)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E68 #35681E
analogous
#2C1E68 #511E68 #681E5A
triadic
#511E68 #68511E #1E6851
tetradic
#511E68 #682C1E #35681E #1E5A68
square
#511E68 #682C1E #35681E #1E5A68
split-complementary
#511E68 #5A681E #1E682C
monochromatic
#120718 #2C1039 #511E68 #762C98 #9B3AC6

Accessibility & contrast

On white

12.10
#511E68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#511E68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511E68
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E68#FFFFFF#000000##FFFFFF
##511E681.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336A
Deuteranopia (green-blind)
#193766
Tritanopia (blue-blind)
#4F2D40
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #511e68;
/* rgb */ color: rgb(81, 30, 104);
/* oklch */ color: oklch(34.9% 0.129 313.4);
Tailwind
colors: {
  custom: {
    50: '#855e94',
    500: '#511e68',
    950: '#000000',
  },
}
SCSS
$custom: #511e68;
$custom-light: #855e94;
$custom-dark: #000000;
JSON
{
  "hex": "#511e68",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 104
  },
  "hsl": {
    "h": 281.351,
    "s": 55.224,
    "l": 26.275
  },
  "oklch": {
    "l": 0.34858,
    "c": 0.12852,
    "h": 313.4
  },
  "luminance": 0.03677
}

Semantic roles & 50–950 ramp

primary
#511E68
secondary
#609D45
accent
#DF4978
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #511E68

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

Preview Lab → · Contrast checker → · Palette generator →

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