#511454#511454

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

Color values

HEX#511454
RGBrgb(81, 20, 84)
HSLhsl(297, 62%, 20%)
HSVhsv(297, 76%, 33%)
CMYKcmyk(3.6%, 76.2%, 0%, 67.1%)
CIE-LABlab(19.60, 36.90, -24.66)
CIE-LCHlch(19.60, 44.38, 326.25°)
OKLaboklab(32.29% 0.1013 -0.0685)
OKLCHoklch(32.29% 0.122 325.9)
XYZxyz(5.2436, 2.8901, 8.6674)
Luminance0.0289 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511454 #175414
analogous
#311454 #511454 #541437
triadic
#511454 #545114 #145451
tetradic
#511454 #543114 #175414 #143754
square
#511454 #543114 #175414 #143754
split-complementary
#511454 #375414 #145431
monochromatic
#180619 #210823 #511454 #812085 #B02CB7

Accessibility & contrast

On white

13.31
#511454 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#511454 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511454
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511454#FFFFFF#000000##FFFFFF
##5114541.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062B56
Deuteranopia (green-blind)
#223252
Tritanopia (blue-blind)
#531E32
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #511454;
/* rgb */ color: rgb(81, 20, 84);
/* oklch */ color: oklch(32.3% 0.122 325.9);
Tailwind
colors: {
  custom: {
    50: '#845884',
    500: '#511454',
    950: '#000000',
  },
}
SCSS
$custom: #511454;
$custom-light: #845884;
$custom-dark: #000000;
JSON
{
  "hex": "#511454",
  "rgb": {
    "r": 81,
    "g": 20,
    "b": 84
  },
  "hsl": {
    "h": 297.188,
    "s": 61.538,
    "l": 20.392
  },
  "oklch": {
    "l": 0.32287,
    "c": 0.12228,
    "h": 325.9
  },
  "luminance": 0.0289
}

Semantic roles & 50–950 ramp

primary
#511454
secondary
#3C8C38
accent
#E5434B
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511454

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

Preview Lab → · Contrast checker → · Palette generator →

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