#511B5A#511B5A

#511B5A is a dark, moderate purple. Relative luminance 0.033; OKLCH L 33.5% C 0.118 H 321.7°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#511B5A
RGBrgb(81, 27, 90)
HSLhsl(291, 54%, 23%)
HSVhsv(291, 70%, 35%)
CMYKcmyk(10%, 70%, 0%, 64.7%)
CIE-LABlab(21.10, 35.00, -26.29)
CIE-LCHlch(21.10, 43.77, 323.09°)
OKLaboklab(33.49% 0.0927 -0.0733)
OKLCHoklch(33.49% 0.118 321.7)
XYZxyz(5.6305, 3.2717, 10.0058)
Luminance0.0327 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B5A #245A1B
analogous
#321B5A #511B5A #5A1B43
triadic
#511B5A #5A511B #1B5A51
tetradic
#511B5A #5A321B #245A1B #1B435A
square
#511B5A #5A321B #245A1B #1B435A
split-complementary
#511B5A #435A1B #1B5A32
monochromatic
#150718 #270D2B #511B5A #7B2989 #A637B8

Accessibility & contrast

On white

12.69
#511B5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511B5A
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B5A#FFFFFF#000000##FFFFFF
##511B5A1.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2F5C
Deuteranopia (green-blind)
#223558
Tritanopia (blue-blind)
#522538
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511b5a;
/* rgb */ color: rgb(81, 27, 90);
/* oklch */ color: oklch(33.5% 0.118 321.7);
Tailwind
colors: {
  custom: {
    50: '#845c89',
    500: '#511b5a',
    950: '#000000',
  },
}
SCSS
$custom: #511b5a;
$custom-light: #845c89;
$custom-dark: #000000;
JSON
{
  "hex": "#511b5a",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 90
  },
  "hsl": {
    "h": 291.429,
    "s": 53.846,
    "l": 22.941
  },
  "oklch": {
    "l": 0.33492,
    "c": 0.11815,
    "h": 321.7
  },
  "luminance": 0.03271
}

Semantic roles & 50–950 ramp

primary
#511B5A
secondary
#4C9041
accent
#DD4B60
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511B5A

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

Preview Lab → · Contrast checker → · Palette generator →

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