#511B64#511B64

#511B64 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.2% C 0.129 H 315.9°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#511B64
RGBrgb(81, 27, 100)
HSLhsl(284, 57%, 25%)
HSVhsv(284, 73%, 39%)
CMYKcmyk(19%, 73%, 0%, 60.8%)
CIE-LABlab(21.78, 37.20, -31.81)
CIE-LCHlch(21.78, 48.95, 319.46°)
OKLaboklab(34.19% 0.0923 -0.0894)
OKLCHoklch(34.19% 0.129 315.9)
XYZxyz(6.0852, 3.4535, 12.4002)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B64 #2E641B
analogous
#2D1B64 #511B64 #641B52
triadic
#511B64 #64511B #1B6451
tetradic
#511B64 #642D1B #2E641B #1B5264
square
#511B64 #642D1B #2E641B #1B5264
split-complementary
#511B64 #52641B #1B642D
monochromatic
#140718 #2A0E34 #511B64 #782894 #9F35C4

Accessibility & contrast

On white

12.42
#511B64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#511B64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B64
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B64#FFFFFF#000000##FFFFFF
##511B641.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003166
Deuteranopia (green-blind)
#1A3662
Tritanopia (blue-blind)
#50293D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511b64;
/* rgb */ color: rgb(81, 27, 100);
/* oklch */ color: oklch(34.2% 0.129 315.9);
Tailwind
colors: {
  custom: {
    50: '#855c91',
    500: '#511b64',
    950: '#000000',
  },
}
SCSS
$custom: #511b64;
$custom-light: #855c91;
$custom-dark: #000000;
JSON
{
  "hex": "#511b64",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 100
  },
  "hsl": {
    "h": 284.384,
    "s": 57.48,
    "l": 24.902
  },
  "oklch": {
    "l": 0.34194,
    "c": 0.12853,
    "h": 315.9
  },
  "luminance": 0.03453
}

Semantic roles & 50–950 ramp

primary
#511B64
secondary
#589941
accent
#E1476F
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040D
muted
#7C797D

Preview Lab

Preview with #511B64

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

Preview Lab → · Contrast checker → · Palette generator →

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