#511A5A#511A5A

#511A5A is a dark, moderate purple. Relative luminance 0.032; OKLCH L 33.4% C 0.120 H 321.8°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#511A5A
RGBrgb(81, 26, 90)
HSLhsl(292, 55%, 23%)
HSVhsv(292, 71%, 35%)
CMYKcmyk(10%, 71.1%, 0%, 64.7%)
CIE-LABlab(20.93, 35.47, -26.56)
CIE-LCHlch(20.93, 44.31, 323.18°)
OKLaboklab(33.37% 0.094 -0.0741)
OKLCHoklch(33.37% 0.12 321.8)
XYZxyz(5.6080, 3.2266, 9.9983)
Luminance0.0323 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A5A #235A1A
analogous
#311A5A #511A5A #5A1A43
triadic
#511A5A #5A511A #1A5A51
tetradic
#511A5A #5A311A #235A1A #1A435A
square
#511A5A #5A311A #235A1A #1A435A
split-complementary
#511A5A #435A1A #1A5A31
monochromatic
#150718 #260C2B #511A5A #7C2889 #A635B9

Accessibility & contrast

On white

12.76
#511A5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#511A5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A5A
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A5A#FFFFFF#000000##FFFFFF
##511A5A1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082E5C
Deuteranopia (green-blind)
#223458
Tritanopia (blue-blind)
#522537
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511a5a;
/* rgb */ color: rgb(81, 26, 90);
/* oklch */ color: oklch(33.4% 0.120 321.8);
Tailwind
colors: {
  custom: {
    50: '#845c89',
    500: '#511a5a',
    950: '#000000',
  },
}
SCSS
$custom: #511a5a;
$custom-light: #845c89;
$custom-dark: #000000;
JSON
{
  "hex": "#511a5a",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 90
  },
  "hsl": {
    "h": 291.563,
    "s": 55.172,
    "l": 22.745
  },
  "oklch": {
    "l": 0.33369,
    "c": 0.11965,
    "h": 321.8
  },
  "luminance": 0.03226
}

Semantic roles & 50–950 ramp

primary
#511A5A
secondary
#4B9040
accent
#DF495E
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511A5A

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

Preview Lab → · Contrast checker → · Palette generator →

#511A5A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva