#511558#511558

#511558 is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.7% C 0.125 H 323.4°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#511558
RGBrgb(81, 21, 88)
HSLhsl(294, 61%, 21%)
HSVhsv(294, 76%, 35%)
CMYKcmyk(8%, 76.1%, 0%, 65.5%)
CIE-LABlab(20.01, 37.29, -26.70)
CIE-LCHlch(20.01, 45.86, 324.40°)
OKLaboklab(32.66% 0.1001 -0.0744)
OKLCHoklch(32.66% 0.125 323.4)
XYZxyz(5.4228, 2.9906, 9.5222)
Luminance0.0299 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511558 #1C5815
analogous
#301558 #511558 #58153E
triadic
#511558 #585115 #155851
tetradic
#511558 #583015 #1C5815 #153E58
square
#511558 #583015 #1C5815 #153E58
split-complementary
#511558 #3E5815 #155830
monochromatic
#170619 #240927 #511558 #7E2189 #AC2DBB

Accessibility & contrast

On white

13.14
#511558 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#511558 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511558
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511558#FFFFFF#000000##FFFFFF
##5115581.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012C5A
Deuteranopia (green-blind)
#203356
Tritanopia (blue-blind)
#522135
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #511558;
/* rgb */ color: rgb(81, 21, 88);
/* oklch */ color: oklch(32.7% 0.125 323.4);
Tailwind
colors: {
  custom: {
    50: '#845987',
    500: '#511558',
    950: '#000000',
  },
}
SCSS
$custom: #511558;
$custom-light: #845987;
$custom-dark: #000000;
JSON
{
  "hex": "#511558",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 88
  },
  "hsl": {
    "h": 293.731,
    "s": 61.468,
    "l": 21.373
  },
  "oklch": {
    "l": 0.32663,
    "c": 0.12471,
    "h": 323.4
  },
  "luminance": 0.0299
}

Semantic roles & 50–950 ramp

primary
#511558
secondary
#429039
accent
#E54354
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511558

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

Preview Lab → · Contrast checker → · Palette generator →

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