#511E63#511E63

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

Color values

HEX#511E63
RGBrgb(81, 30, 99)
HSLhsl(284, 53%, 25%)
HSVhsv(284, 70%, 39%)
CMYKcmyk(18.2%, 69.7%, 0%, 61.2%)
CIE-LABlab(22.23, 35.51, -30.43)
CIE-LCHlch(22.23, 46.77, 319.41°)
OKLaboklab(34.5% 0.0886 -0.0854)
OKLCHoklch(34.5% 0.123 316.1)
XYZxyz(6.1094, 3.5790, 12.1709)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E63 #30631E
analogous
#2F1E63 #511E63 #631E52
triadic
#511E63 #63511E #1E6351
tetradic
#511E63 #632F1E #30631E #1E5263
square
#511E63 #632F1E #30631E #1E5263
split-complementary
#511E63 #52631E #1E632F
monochromatic
#130717 #2B1034 #511E63 #772C92 #9E3AC1

Accessibility & contrast

On white

12.24
#511E63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511E63
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E63#FFFFFF#000000##FFFFFF
##511E631.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023265
Deuteranopia (green-blind)
#1E3761
Tritanopia (blue-blind)
#502B3D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511e63;
/* rgb */ color: rgb(81, 30, 99);
/* oklch */ color: oklch(34.5% 0.123 316.1);
Tailwind
colors: {
  custom: {
    50: '#845e90',
    500: '#511e63',
    950: '#000000',
  },
}
SCSS
$custom: #511e63;
$custom-light: #845e90;
$custom-dark: #000000;
JSON
{
  "hex": "#511e63",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 99
  },
  "hsl": {
    "h": 284.348,
    "s": 53.488,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34496,
    "c": 0.12309,
    "h": 316.1
  },
  "luminance": 0.03579
}

Semantic roles & 50–950 ramp

primary
#511E63
secondary
#5B9845
accent
#DD4B71
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #511E63

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

Preview Lab → · Contrast checker → · Palette generator →

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