#511451#511451

#511451 is a dark, moderate purple. Relative luminance 0.028; OKLCH L 32.1% C 0.120 H 327.9°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#511451
RGBrgb(81, 20, 81)
HSLhsl(300, 60%, 20%)
HSVhsv(300, 75%, 32%)
CMYKcmyk(0%, 75.3%, 0%, 68.2%)
CIE-LABlab(19.41, 36.32, -22.93)
CIE-LCHlch(19.41, 42.95, 327.73°)
OKLaboklab(32.09% 0.1013 -0.0635)
OKLCHoklch(32.09% 0.12 327.9)
XYZxyz(5.1286, 2.8441, 8.0618)
Luminance0.0284 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511451 #145114
analogous
#331451 #511451 #511433
triadic
#511451 #515114 #145151
tetradic
#511451 #513314 #145114 #143351
square
#511451 #513314 #145114 #143351
split-complementary
#511451 #335114 #145133
monochromatic
#190619 #200820 #511451 #822082 #B32CB3

Accessibility & contrast

On white

13.39
#511451 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511451
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511451#FFFFFF#000000##FFFFFF
##5114511.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2A53
Deuteranopia (green-blind)
#24324F
Tritanopia (blue-blind)
#541D31
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #511451;
/* rgb */ color: rgb(81, 20, 81);
/* oklch */ color: oklch(32.1% 0.120 327.9);
Tailwind
colors: {
  custom: {
    50: '#845882',
    500: '#511451',
    950: '#000000',
  },
}
SCSS
$custom: #511451;
$custom-light: #845882;
$custom-dark: #000000;
JSON
{
  "hex": "#511451",
  "rgb": {
    "r": 81,
    "g": 20,
    "b": 81
  },
  "hsl": {
    "h": 300,
    "s": 60.396,
    "l": 19.804
  },
  "oklch": {
    "l": 0.32089,
    "c": 0.11952,
    "h": 327.9
  },
  "luminance": 0.02844
}

Semantic roles & 50–950 ramp

primary
#511451
secondary
#388938
accent
#E44444
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511451

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

Preview Lab → · Contrast checker → · Palette generator →

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