#511158#511158

#511158 is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.3% C 0.130 H 323.6°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#511158
RGBrgb(81, 17, 88)
HSLhsl(294, 68%, 21%)
HSVhsv(294, 81%, 35%)
CMYKcmyk(8%, 80.7%, 0%, 65.5%)
CIE-LABlab(19.45, 38.86, -27.58)
CIE-LCHlch(19.45, 47.65, 324.64°)
OKLaboklab(32.27% 0.1044 -0.077)
OKLCHoklch(32.27% 0.13 323.6)
XYZxyz(5.3551, 2.8551, 9.4997)
Luminance0.0285 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511158 #185811
analogous
#2E1158 #511158 #58113B
triadic
#511158 #585111 #115851
tetradic
#511158 #582E11 #185811 #113B58
square
#511158 #582E11 #185811 #113B58
split-complementary
#511158 #3B5811 #11582E
monochromatic
#18051A #220725 #511158 #801B8B #AF25BF

Accessibility & contrast

On white

13.37
#511158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#511158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511158
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511158#FFFFFF#000000##FFFFFF
##5111581.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5A
Deuteranopia (green-blind)
#1E3256
Tritanopia (blue-blind)
#521E34
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #511158;
/* rgb */ color: rgb(81, 17, 88);
/* oklch */ color: oklch(32.3% 0.130 323.6);
Tailwind
colors: {
  custom: {
    50: '#855787',
    500: '#511158',
    950: '#000000',
  },
}
SCSS
$custom: #511158;
$custom-light: #855787;
$custom-dark: #000000;
JSON
{
  "hex": "#511158",
  "rgb": {
    "r": 81,
    "g": 17,
    "b": 88
  },
  "hsl": {
    "h": 294.085,
    "s": 67.619,
    "l": 20.588
  },
  "oklch": {
    "l": 0.3227,
    "c": 0.12968,
    "h": 323.6
  },
  "luminance": 0.02855
}

Semantic roles & 50–950 ramp

primary
#511158
secondary
#3D9134
accent
#EA3D4E
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #511158

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

Preview Lab → · Contrast checker → · Palette generator →

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