#511358#511358

#511358 is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.5% C 0.127 H 323.5°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#511358
RGBrgb(81, 19, 88)
HSLhsl(294, 64%, 21%)
HSVhsv(294, 78%, 35%)
CMYKcmyk(8%, 78.4%, 0%, 65.5%)
CIE-LABlab(19.72, 38.10, -27.15)
CIE-LCHlch(19.72, 46.78, 324.52°)
OKLaboklab(32.46% 0.1023 -0.0757)
OKLCHoklch(32.46% 0.127 323.5)
XYZxyz(5.3875, 2.9200, 9.5105)
Luminance0.0292 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511358 #1A5813
analogous
#2E1358 #511358 #58133C
triadic
#511358 #585113 #135851
tetradic
#511358 #582E13 #1A5813 #133C58
square
#511358 #582E13 #1A5813 #133C58
split-complementary
#511358 #3C5813 #13582E
monochromatic
#170519 #230826 #511358 #7F1E8A #AE29BD

Accessibility & contrast

On white

13.26
#511358 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#511358 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511358
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511358#FFFFFF#000000##FFFFFF
##5113581.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5A
Deuteranopia (green-blind)
#1F3256
Tritanopia (blue-blind)
#521F34
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #511358;
/* rgb */ color: rgb(81, 19, 88);
/* oklch */ color: oklch(32.5% 0.127 323.5);
Tailwind
colors: {
  custom: {
    50: '#855887',
    500: '#511358',
    950: '#000000',
  },
}
SCSS
$custom: #511358;
$custom-light: #855887;
$custom-dark: #000000;
JSON
{
  "hex": "#511358",
  "rgb": {
    "r": 81,
    "g": 19,
    "b": 88
  },
  "hsl": {
    "h": 293.913,
    "s": 64.486,
    "l": 20.98
  },
  "oklch": {
    "l": 0.32459,
    "c": 0.12728,
    "h": 323.5
  },
  "luminance": 0.0292
}

Semantic roles & 50–950 ramp

primary
#511358
secondary
#409037
accent
#E74051
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511358

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

Preview Lab → · Contrast checker → · Palette generator →

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