#511B5D#511B5D

#511B5D is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.7% C 0.121 H 319.8°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#511B5D
RGBrgb(81, 27, 93)
HSLhsl(289, 55%, 24%)
HSVhsv(289, 71%, 36%)
CMYKcmyk(12.9%, 71%, 0%, 63.5%)
CIE-LABlab(21.30, 35.64, -27.97)
CIE-LCHlch(21.30, 45.30, 321.88°)
OKLaboklab(33.7% 0.0927 -0.0782)
OKLCHoklch(33.7% 0.121 319.8)
XYZxyz(5.7608, 3.3238, 10.6919)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B5D #275D1B
analogous
#301B5D #511B5D #5D1B48
triadic
#511B5D #5D511B #1B5D51
tetradic
#511B5D #5D301B #275D1B #1B485D
square
#511B5D #5D301B #275D1B #1B485D
split-complementary
#511B5D #485D1B #1B5D30
monochromatic
#150718 #280D2E #511B5D #7A298C #A437BC

Accessibility & contrast

On white

12.61
#511B5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#511B5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B5D
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B5D#FFFFFF#000000##FFFFFF
##511B5D1.0012.611.6612.61
#FFFFFF12.611.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052F5F
Deuteranopia (green-blind)
#20355B
Tritanopia (blue-blind)
#512739
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511b5d;
/* rgb */ color: rgb(81, 27, 93);
/* oklch */ color: oklch(33.7% 0.121 319.8);
Tailwind
colors: {
  custom: {
    50: '#845c8b',
    500: '#511b5d',
    950: '#000000',
  },
}
SCSS
$custom: #511b5d;
$custom-light: #845c8b;
$custom-dark: #000000;
JSON
{
  "hex": "#511b5d",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 93
  },
  "hsl": {
    "h": 289.091,
    "s": 55,
    "l": 23.529
  },
  "oklch": {
    "l": 0.33696,
    "c": 0.12124,
    "h": 319.8
  },
  "luminance": 0.03324
}

Semantic roles & 50–950 ramp

primary
#511B5D
secondary
#509341
accent
#DE4965
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511B5D

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

Preview Lab → · Contrast checker → · Palette generator →

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