#511457#511457

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

Color values

HEX#511457
RGBrgb(81, 20, 87)
HSLhsl(295, 63%, 21%)
HSVhsv(295, 77%, 34%)
CMYKcmyk(6.9%, 77%, 0%, 65.9%)
CIE-LABlab(19.79, 37.50, -26.36)
CIE-LCHlch(19.79, 45.84, 324.89°)
OKLaboklab(32.49% 0.1012 -0.0734)
OKLCHoklch(32.49% 0.125 324)
XYZxyz(5.3636, 2.9381, 9.2996)
Luminance0.0294 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511457 #1A5714
analogous
#2F1457 #511457 #57143B
triadic
#511457 #575114 #145751
tetradic
#511457 #572F14 #1A5714 #143B57
square
#511457 #572F14 #1A5714 #143B57
split-complementary
#511457 #3B5714 #14572F
monochromatic
#170619 #230925 #511457 #7F1F89 #AE2BBB

Accessibility & contrast

On white

13.23
#511457 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#511457 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511457
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511457#FFFFFF#000000##FFFFFF
##5114571.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012B59
Deuteranopia (green-blind)
#203255
Tritanopia (blue-blind)
#532034
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #511457;
/* rgb */ color: rgb(81, 20, 87);
/* oklch */ color: oklch(32.5% 0.125 324.0);
Tailwind
colors: {
  custom: {
    50: '#845887',
    500: '#511457',
    950: '#000000',
  },
}
SCSS
$custom: #511457;
$custom-light: #845887;
$custom-dark: #000000;
JSON
{
  "hex": "#511457",
  "rgb": {
    "r": 81,
    "g": 20,
    "b": 87
  },
  "hsl": {
    "h": 294.627,
    "s": 62.617,
    "l": 20.98
  },
  "oklch": {
    "l": 0.3249,
    "c": 0.12508,
    "h": 324
  },
  "luminance": 0.02938
}

Semantic roles & 50–950 ramp

primary
#511457
secondary
#408F38
accent
#E64251
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511457

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

Preview Lab → · Contrast checker → · Palette generator →

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