#511057#511057

#511057 is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.1% C 0.130 H 324.2°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#511057
RGBrgb(81, 16, 87)
HSLhsl(295, 69%, 20%)
HSVhsv(295, 82%, 34%)
CMYKcmyk(6.9%, 81.6%, 0%, 65.9%)
CIE-LABlab(19.26, 39.03, -27.22)
CIE-LCHlch(19.26, 47.58, 325.11°)
OKLaboklab(32.11% 0.1054 -0.0759)
OKLCHoklch(32.11% 0.13 324.2)
XYZxyz(5.2988, 2.8084, 9.2780)
Luminance0.0281 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511057 #165710
analogous
#2E1057 #511057 #571039
triadic
#511057 #575110 #105751
tetradic
#511057 #572E10 #165710 #103957
square
#511057 #572E10 #165710 #103957
split-complementary
#511057 #395710 #10572E
monochromatic
#18051A #210623 #511057 #811A8B #B123BE

Accessibility & contrast

On white

13.45
#511057 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#511057 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511057
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511057#FFFFFF#000000##FFFFFF
##5110571.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A59
Deuteranopia (green-blind)
#1E3155
Tritanopia (blue-blind)
#531D33
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #511057;
/* rgb */ color: rgb(81, 16, 87);
/* oklch */ color: oklch(32.1% 0.130 324.2);
Tailwind
colors: {
  custom: {
    50: '#855787',
    500: '#511057',
    950: '#000000',
  },
}
SCSS
$custom: #511057;
$custom-light: #855787;
$custom-dark: #000000;
JSON
{
  "hex": "#511057",
  "rgb": {
    "r": 81,
    "g": 16,
    "b": 87
  },
  "hsl": {
    "h": 294.93,
    "s": 68.932,
    "l": 20.196
  },
  "oklch": {
    "l": 0.32109,
    "c": 0.12992,
    "h": 324.2
  },
  "luminance": 0.02808
}

Semantic roles & 50–950 ramp

primary
#511057
secondary
#3A9032
accent
#EC3C4B
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #511057

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

Preview Lab → · Contrast checker → · Palette generator →

#511057 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva