#511A63#511A63

#511A63 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.0% C 0.129 H 316.6°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#511A63
RGBrgb(81, 26, 99)
HSLhsl(285, 58%, 25%)
HSVhsv(285, 74%, 39%)
CMYKcmyk(18.2%, 73.7%, 0%, 61.2%)
CIE-LABlab(21.54, 37.44, -31.54)
CIE-LCHlch(21.54, 48.95, 319.89°)
OKLaboklab(34% 0.0936 -0.0886)
OKLCHoklch(34% 0.129 316.6)
XYZxyz(6.0145, 3.3892, 12.1393)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A63 #2C631A
analogous
#2C1A63 #511A63 #631A51
triadic
#511A63 #63511A #1A6351
tetradic
#511A63 #632C1A #2C631A #1A5163
square
#511A63 #632C1A #2C631A #1A5163
split-complementary
#511A63 #51631A #1A632C
monochromatic
#140618 #290D33 #511A63 #792793 #A033C4

Accessibility & contrast

On white

12.52
#511A63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#511A63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A63
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A63#FFFFFF#000000##FFFFFF
##511A631.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003065
Deuteranopia (green-blind)
#1B3561
Tritanopia (blue-blind)
#50283C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511a63;
/* rgb */ color: rgb(81, 26, 99);
/* oklch */ color: oklch(34.0% 0.129 316.6);
Tailwind
colors: {
  custom: {
    50: '#855c90',
    500: '#511a63',
    950: '#000000',
  },
}
SCSS
$custom: #511a63;
$custom-light: #855c90;
$custom-dark: #000000;
JSON
{
  "hex": "#511a63",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 99
  },
  "hsl": {
    "h": 285.205,
    "s": 58.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.34003,
    "c": 0.12888,
    "h": 316.6
  },
  "luminance": 0.03389
}

Semantic roles & 50–950 ramp

primary
#511A63
secondary
#569940
accent
#E2466D
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511A63

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

Preview Lab → · Contrast checker → · Palette generator →

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