#511C5D#511C5D

#511C5D is a dark, moderate purple. Relative luminance 0.034; OKLCH L 33.8% C 0.120 H 319.7°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#511C5D
RGBrgb(81, 28, 93)
HSLhsl(289, 54%, 24%)
HSVhsv(289, 70%, 36%)
CMYKcmyk(12.9%, 69.9%, 0%, 63.5%)
CIE-LABlab(21.47, 35.16, -27.69)
CIE-LCHlch(21.47, 44.75, 321.78°)
OKLaboklab(33.82% 0.0914 -0.0774)
OKLCHoklch(33.82% 0.12 319.7)
XYZxyz(5.7841, 3.3704, 10.6997)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C5D #285D1C
analogous
#301C5D #511C5D #5D1C48
triadic
#511C5D #5D511C #1C5D51
tetradic
#511C5D #5D301C #285D1C #1C485D
square
#511C5D #5D301C #285D1C #1C485D
split-complementary
#511C5D #485D1C #1C5D30
monochromatic
#140718 #280E2E #511C5D #7A2A8C #A338BB

Accessibility & contrast

On white

12.54
#511C5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#511C5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511C5D
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C5D#FFFFFF#000000##FFFFFF
##511C5D1.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08305F
Deuteranopia (green-blind)
#21355B
Tritanopia (blue-blind)
#51273A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511c5d;
/* rgb */ color: rgb(81, 28, 93);
/* oklch */ color: oklch(33.8% 0.120 319.7);
Tailwind
colors: {
  custom: {
    50: '#845d8b',
    500: '#511c5d',
    950: '#000000',
  },
}
SCSS
$custom: #511c5d;
$custom-light: #845d8b;
$custom-dark: #000000;
JSON
{
  "hex": "#511c5d",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 93
  },
  "hsl": {
    "h": 288.923,
    "s": 53.719,
    "l": 23.725
  },
  "oklch": {
    "l": 0.33821,
    "c": 0.11973,
    "h": 319.7
  },
  "luminance": 0.0337
}

Semantic roles & 50–950 ramp

primary
#511C5D
secondary
#519242
accent
#DD4B66
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511C5D

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

Preview Lab → · Contrast checker → · Palette generator →

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