#511C62#511C62

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

Color values

HEX#511C62
RGBrgb(81, 28, 98)
HSLhsl(285, 56%, 25%)
HSVhsv(285, 71%, 38%)
CMYKcmyk(17.3%, 71.4%, 0%, 61.6%)
CIE-LABlab(21.81, 36.27, -30.45)
CIE-LCHlch(21.81, 47.36, 319.99°)
OKLaboklab(34.17% 0.0912 -0.0855)
OKLCHoklch(34.17% 0.125 316.9)
XYZxyz(6.0129, 3.4619, 11.9044)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C62 #2D621C
analogous
#2E1C62 #511C62 #621C50
triadic
#511C62 #62511C #1C6251
tetradic
#511C62 #622E1C #2D621C #1C5062
square
#511C62 #622E1C #2D621C #1C5062
split-complementary
#511C62 #50621C #1C622E
monochromatic
#140718 #2A0E32 #511C62 #782A92 #A037C1

Accessibility & contrast

On white

12.41
#511C62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#511C62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511C62
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C62#FFFFFF#000000##FFFFFF
##511C621.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003164
Deuteranopia (green-blind)
#1D3660
Tritanopia (blue-blind)
#50293C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511c62;
/* rgb */ color: rgb(81, 28, 98);
/* oklch */ color: oklch(34.2% 0.125 316.9);
Tailwind
colors: {
  custom: {
    50: '#845d8f',
    500: '#511c62',
    950: '#000000',
  },
}
SCSS
$custom: #511c62;
$custom-light: #845d8f;
$custom-dark: #000000;
JSON
{
  "hex": "#511c62",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 98
  },
  "hsl": {
    "h": 285.429,
    "s": 55.556,
    "l": 24.706
  },
  "oklch": {
    "l": 0.34171,
    "c": 0.12499,
    "h": 316.9
  },
  "luminance": 0.03462
}

Semantic roles & 50–950 ramp

primary
#511C62
secondary
#579743
accent
#DF496D
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511C62

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

Preview Lab → · Contrast checker → · Palette generator →

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