#511C68#511C68

#511C68 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.6% C 0.131 H 313.7°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#511C68
RGBrgb(81, 28, 104)
HSLhsl(282, 58%, 26%)
HSVhsv(282, 73%, 41%)
CMYKcmyk(22.1%, 73.1%, 0%, 59.2%)
CIE-LABlab(22.23, 37.64, -33.70)
CIE-LCHlch(22.23, 50.52, 318.16°)
OKLaboklab(34.61% 0.0907 -0.095)
OKLCHoklch(34.61% 0.131 313.7)
XYZxyz(6.3069, 3.5795, 13.4527)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C68 #33681C
analogous
#2B1C68 #511C68 #681C59
triadic
#511C68 #68511C #1C6851
tetradic
#511C68 #682B1C #33681C #1C5968
square
#511C68 #682B1C #33681C #1C5968
split-complementary
#511C68 #59681C #1C682B
monochromatic
#130618 #2B0F38 #511C68 #772998 #9C36C8

Accessibility & contrast

On white

12.24
#511C68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#511C68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511C68
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C68#FFFFFF#000000##FFFFFF
##511C681.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326A
Deuteranopia (green-blind)
#173666
Tritanopia (blue-blind)
#4F2C40
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511c68;
/* rgb */ color: rgb(81, 28, 104);
/* oklch */ color: oklch(34.6% 0.131 313.7);
Tailwind
colors: {
  custom: {
    50: '#855d94',
    500: '#511c68',
    950: '#000000',
  },
}
SCSS
$custom: #511c68;
$custom-light: #855d94;
$custom-dark: #000000;
JSON
{
  "hex": "#511c68",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 104
  },
  "hsl": {
    "h": 281.842,
    "s": 57.576,
    "l": 25.882
  },
  "oklch": {
    "l": 0.3461,
    "c": 0.13136,
    "h": 313.7
  },
  "luminance": 0.03579
}

Semantic roles & 50–950 ramp

primary
#511C68
secondary
#5E9D43
accent
#E14776
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511C68

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

Preview Lab → · Contrast checker → · Palette generator →

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