#511C63#511C63

#511C63 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.2% C 0.126 H 316.3°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#511C63
RGBrgb(81, 28, 99)
HSLhsl(285, 56%, 25%)
HSVhsv(285, 72%, 39%)
CMYKcmyk(18.2%, 71.7%, 0%, 61.2%)
CIE-LABlab(21.88, 36.50, -31.00)
CIE-LCHlch(21.88, 47.88, 319.66°)
OKLaboklab(34.24% 0.0912 -0.0871)
OKLCHoklch(34.24% 0.126 316.3)
XYZxyz(6.0604, 3.4809, 12.1546)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C63 #2E631C
analogous
#2E1C63 #511C63 #631C51
triadic
#511C63 #63511C #1C6351
tetradic
#511C63 #632E1C #2E631C #1C5163
square
#511C63 #632E1C #2E631C #1C5163
split-complementary
#511C63 #51631C #1C632E
monochromatic
#140718 #2A0F33 #511C63 #782993 #9F37C2

Accessibility & contrast

On white

12.38
#511C63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#511C63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511C63
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C63#FFFFFF#000000##FFFFFF
##511C631.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003165
Deuteranopia (green-blind)
#1C3661
Tritanopia (blue-blind)
#502A3D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511c63;
/* rgb */ color: rgb(81, 28, 99);
/* oklch */ color: oklch(34.2% 0.126 316.3);
Tailwind
colors: {
  custom: {
    50: '#845d90',
    500: '#511c63',
    950: '#000000',
  },
}
SCSS
$custom: #511c63;
$custom-light: #845d90;
$custom-dark: #000000;
JSON
{
  "hex": "#511c63",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 99
  },
  "hsl": {
    "h": 284.789,
    "s": 55.906,
    "l": 24.902
  },
  "oklch": {
    "l": 0.34243,
    "c": 0.12605,
    "h": 316.3
  },
  "luminance": 0.03481
}

Semantic roles & 50–950 ramp

primary
#511C63
secondary
#589843
accent
#DF496F
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511C63

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

Preview Lab → · Contrast checker → · Palette generator →

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