#511E50#511E50

#511E50 is a dark, moderate purple. Relative luminance 0.033; OKLCH L 33.3% C 0.103 H 328.4°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#511E50
RGBrgb(81, 30, 80)
HSLhsl(301, 46%, 22%)
HSVhsv(301, 63%, 32%)
CMYKcmyk(0%, 63%, 1.2%, 68.2%)
CIE-LABlab(21.05, 31.40, -19.67)
CIE-LCHlch(21.05, 37.06, 327.93°)
OKLaboklab(33.26% 0.0879 -0.0541)
OKLCHoklch(33.26% 0.103 328.4)
XYZxyz(5.3055, 3.2574, 7.9372)
Luminance0.0326 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E50 #1E511F
analogous
#391E51 #511E50 #511E37
triadic
#511E50 #50511E #1E5051
tetradic
#511E50 #51391E #1E511F #1E3751
square
#511E50 #51391E #1E511F #1E3751
split-complementary
#511E50 #37511E #1E5139
monochromatic
#160816 #240D24 #511E50 #7E2F7C #AA3FA8

Accessibility & contrast

On white

12.72
#511E50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#511E50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511E50
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E50#FFFFFF#000000##FFFFFF
##511E501.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192E52
Deuteranopia (green-blind)
#2A354F
Tritanopia (blue-blind)
#542434
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511e50;
/* rgb */ color: rgb(81, 30, 80);
/* oklch */ color: oklch(33.3% 0.103 328.4);
Tailwind
colors: {
  custom: {
    50: '#845d81',
    500: '#511e50',
    950: '#000000',
  },
}
SCSS
$custom: #511e50;
$custom-light: #845d81;
$custom-dark: #000000;
JSON
{
  "hex": "#511e50",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 80
  },
  "hsl": {
    "h": 301.176,
    "s": 45.946,
    "l": 21.765
  },
  "oklch": {
    "l": 0.33258,
    "c": 0.10319,
    "h": 328.4
  },
  "luminance": 0.03257
}

Semantic roles & 50–950 ramp

primary
#511E50
secondary
#458646
accent
#D65552
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511E50

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

Preview Lab → · Contrast checker → · Palette generator →

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