#511D65#511D65

#511D65 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.5% C 0.127 H 315.1°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#511D65
RGBrgb(81, 29, 101)
HSLhsl(283, 55%, 25%)
HSVhsv(283, 71%, 40%)
CMYKcmyk(19.8%, 71.3%, 0%, 60.4%)
CIE-LABlab(22.19, 36.47, -31.81)
CIE-LCHlch(22.19, 48.39, 318.91°)
OKLaboklab(34.51% 0.0898 -0.0894)
OKLCHoklch(34.51% 0.127 315.1)
XYZxyz(6.1813, 3.5679, 12.6725)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D65 #31651D
analogous
#2D1D65 #511D65 #651D55
triadic
#511D65 #65511D #1D6551
tetradic
#511D65 #652D1D #31651D #1D5565
square
#511D65 #652D1D #31651D #1D5565
split-complementary
#511D65 #55651D #1D652D
monochromatic
#130718 #2B0F35 #511D65 #772B95 #9D38C4

Accessibility & contrast

On white

12.25
#511D65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#511D65 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511D65
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D65#FFFFFF#000000##FFFFFF
##511D651.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003267
Deuteranopia (green-blind)
#1B3663
Tritanopia (blue-blind)
#4F2B3E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511d65;
/* rgb */ color: rgb(81, 29, 101);
/* oklch */ color: oklch(34.5% 0.127 315.1);
Tailwind
colors: {
  custom: {
    50: '#855e91',
    500: '#511d65',
    950: '#000000',
  },
}
SCSS
$custom: #511d65;
$custom-light: #855e91;
$custom-dark: #000000;
JSON
{
  "hex": "#511d65",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 101
  },
  "hsl": {
    "h": 283.333,
    "s": 55.385,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34512,
    "c": 0.12673,
    "h": 315.1
  },
  "luminance": 0.03568
}

Semantic roles & 50–950 ramp

primary
#511D65
secondary
#5C9A44
accent
#DF4973
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511D65

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

Preview Lab → · Contrast checker → · Palette generator →

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