#511354#511354

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

Color values

HEX#511354
RGBrgb(81, 19, 84)
HSLhsl(297, 63%, 20%)
HSVhsv(297, 77%, 33%)
CMYKcmyk(3.6%, 77.4%, 0%, 67.1%)
CIE-LABlab(19.46, 37.31, -24.89)
CIE-LCHlch(19.46, 44.84, 326.29°)
OKLaboklab(32.19% 0.1024 -0.0691)
OKLCHoklch(32.19% 0.124 326)
XYZxyz(5.2263, 2.8555, 8.6617)
Luminance0.0285 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511354 #165413
analogous
#311354 #511354 #541336
triadic
#511354 #545113 #135451
tetradic
#511354 #543113 #165413 #133654
square
#511354 #543113 #165413 #133654
split-complementary
#511354 #365413 #135431
monochromatic
#180619 #210822 #511354 #811E86 #B12AB8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##511354#FFFFFF#000000##FFFFFF
##5113541.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)
#042A56
Deuteranopia (green-blind)
#223252
Tritanopia (blue-blind)
#531E32
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #511354;
/* rgb */ color: rgb(81, 19, 84);
/* oklch */ color: oklch(32.2% 0.124 326.0);
Tailwind
colors: {
  custom: {
    50: '#845884',
    500: '#511354',
    950: '#000000',
  },
}
SCSS
$custom: #511354;
$custom-light: #845884;
$custom-dark: #000000;
JSON
{
  "hex": "#511354",
  "rgb": {
    "r": 81,
    "g": 19,
    "b": 84
  },
  "hsl": {
    "h": 297.231,
    "s": 63.107,
    "l": 20.196
  },
  "oklch": {
    "l": 0.32185,
    "c": 0.12358,
    "h": 326
  },
  "luminance": 0.02855
}

Semantic roles & 50–950 ramp

primary
#511354
secondary
#3A8C36
accent
#E64249
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511354

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

Preview Lab → · Contrast checker → · Palette generator →

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