#511C61#511C61

#511C61 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.1% C 0.124 H 317.4°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#511C61
RGBrgb(81, 28, 97)
HSLhsl(286, 55%, 25%)
HSVhsv(286, 71%, 38%)
CMYKcmyk(16.5%, 71.1%, 0%, 62%)
CIE-LABlab(21.74, 36.05, -29.90)
CIE-LCHlch(21.74, 46.83, 320.32°)
OKLaboklab(34.1% 0.0913 -0.0838)
OKLCHoklch(34.1% 0.124 317.4)
XYZxyz(5.9660, 3.4432, 11.6573)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C61 #2C611C
analogous
#2F1C61 #511C61 #611C4F
triadic
#511C61 #61511C #1C6151
tetradic
#511C61 #612F1C #2C611C #1C4F61
square
#511C61 #612F1C #2C611C #1C4F61
split-complementary
#511C61 #4F611C #1C612F
monochromatic
#140718 #290E32 #511C61 #792A90 #A037C0

Accessibility & contrast

On white

12.44
#511C61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511C61
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C61#FFFFFF#000000##FFFFFF
##511C611.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511c61;
/* rgb */ color: rgb(81, 28, 97);
/* oklch */ color: oklch(34.1% 0.124 317.4);
Tailwind
colors: {
  custom: {
    50: '#845d8e',
    500: '#511c61',
    950: '#000000',
  },
}
SCSS
$custom: #511c61;
$custom-light: #845d8e;
$custom-dark: #000000;
JSON
{
  "hex": "#511c61",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 97
  },
  "hsl": {
    "h": 286.087,
    "s": 55.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.341,
    "c": 0.12392,
    "h": 317.4
  },
  "luminance": 0.03443
}

Semantic roles & 50–950 ramp

primary
#511C61
secondary
#569643
accent
#DF496C
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511C61

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

Preview Lab → · Contrast checker → · Palette generator →

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