#511E65#511E65

#511E65 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.6% C 0.125 H 315.0°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#511E65
RGBrgb(81, 30, 101)
HSLhsl(283, 54%, 26%)
HSVhsv(283, 70%, 40%)
CMYKcmyk(19.8%, 70.3%, 0%, 60.4%)
CIE-LABlab(22.36, 35.97, -31.52)
CIE-LCHlch(22.36, 47.83, 318.77°)
OKLaboklab(34.64% 0.0885 -0.0886)
OKLCHoklch(34.64% 0.125 315)
XYZxyz(6.2062, 3.6177, 12.6808)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E65 #32651E
analogous
#2E1E65 #511E65 #651E55
triadic
#511E65 #65511E #1E6551
tetradic
#511E65 #652E1E #32651E #1E5565
square
#511E65 #652E1E #32651E #1E5565
split-complementary
#511E65 #55651E #1E652E
monochromatic
#130718 #2B1036 #511E65 #772C94 #9D3AC3

Accessibility & contrast

On white

12.19
#511E65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#511E65 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511E65
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E65#FFFFFF#000000##FFFFFF
##511E651.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003367
Deuteranopia (green-blind)
#1C3763
Tritanopia (blue-blind)
#4F2C3E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511e65;
/* rgb */ color: rgb(81, 30, 101);
/* oklch */ color: oklch(34.6% 0.125 315.0);
Tailwind
colors: {
  custom: {
    50: '#845e91',
    500: '#511e65',
    950: '#000000',
  },
}
SCSS
$custom: #511e65;
$custom-light: #845e91;
$custom-dark: #000000;
JSON
{
  "hex": "#511e65",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 101
  },
  "hsl": {
    "h": 283.099,
    "s": 54.198,
    "l": 25.686
  },
  "oklch": {
    "l": 0.34639,
    "c": 0.12525,
    "h": 315
  },
  "luminance": 0.03617
}

Semantic roles & 50–950 ramp

primary
#511E65
secondary
#5D9A45
accent
#DE4A74
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #511E65

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

Preview Lab → · Contrast checker → · Palette generator →

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