#511E62#511E62

#511E62 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.4% C 0.122 H 316.6°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#511E62
RGBrgb(81, 30, 98)
HSLhsl(285, 53%, 25%)
HSVhsv(285, 69%, 38%)
CMYKcmyk(17.3%, 69.4%, 0%, 61.6%)
CIE-LABlab(22.16, 35.29, -29.88)
CIE-LCHlch(22.16, 46.24, 319.74°)
OKLaboklab(34.43% 0.0887 -0.0838)
OKLCHoklch(34.43% 0.122 316.6)
XYZxyz(6.0619, 3.5600, 11.9207)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E62 #2F621E
analogous
#2F1E62 #511E62 #621E51
triadic
#511E62 #62511E #1E6251
tetradic
#511E62 #622F1E #2F621E #1E5162
square
#511E62 #622F1E #2F621E #1E5162
split-complementary
#511E62 #51621E #1E622F
monochromatic
#130717 #2A1033 #511E62 #782C91 #9E3BC0

Accessibility & contrast

On white

12.27
#511E62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511E62
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E62#FFFFFF#000000##FFFFFF
##511E621.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511e62;
/* rgb */ color: rgb(81, 30, 98);
/* oklch */ color: oklch(34.4% 0.122 316.6);
Tailwind
colors: {
  custom: {
    50: '#845e8f',
    500: '#511e62',
    950: '#000000',
  },
}
SCSS
$custom: #511e62;
$custom-light: #845e8f;
$custom-dark: #000000;
JSON
{
  "hex": "#511e62",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 98
  },
  "hsl": {
    "h": 285,
    "s": 53.125,
    "l": 25.098
  },
  "oklch": {
    "l": 0.34426,
    "c": 0.122,
    "h": 316.6
  },
  "luminance": 0.0356
}

Semantic roles & 50–950 ramp

primary
#511E62
secondary
#599745
accent
#DD4B70
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511E62

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

Preview Lab → · Contrast checker → · Palette generator →

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