#511B5F#511B5F

#511B5F is a dark, vivid purple. Relative luminance 0.034; OKLCH L 33.8% C 0.123 H 318.7°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#511B5F
RGBrgb(81, 27, 95)
HSLhsl(288, 56%, 24%)
HSVhsv(288, 72%, 37%)
CMYKcmyk(14.7%, 71.6%, 0%, 62.7%)
CIE-LABlab(21.43, 36.08, -29.08)
CIE-LCHlch(21.43, 46.34, 321.14°)
OKLaboklab(33.84% 0.0926 -0.0814)
OKLCHoklch(33.84% 0.123 318.7)
XYZxyz(5.8506, 3.3597, 11.1646)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B5F #295F1B
analogous
#2F1B5F #511B5F #5F1B4B
triadic
#511B5F #5F511B #1B5F51
tetradic
#511B5F #5F2F1B #295F1B #1B4B5F
square
#511B5F #5F2F1B #295F1B #1B4B5F
split-complementary
#511B5F #4B5F1B #1B5F2F
monochromatic
#140718 #280D2F #511B5F #7A298F #A236BE

Accessibility & contrast

On white

12.56
#511B5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511B5F
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B5F#FFFFFF#000000##FFFFFF
##511B5F1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023061
Deuteranopia (green-blind)
#1F355D
Tritanopia (blue-blind)
#51273A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511b5f;
/* rgb */ color: rgb(81, 27, 95);
/* oklch */ color: oklch(33.8% 0.123 318.7);
Tailwind
colors: {
  custom: {
    50: '#845c8d',
    500: '#511b5f',
    950: '#000000',
  },
}
SCSS
$custom: #511b5f;
$custom-light: #845c8d;
$custom-dark: #000000;
JSON
{
  "hex": "#511b5f",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 95
  },
  "hsl": {
    "h": 287.647,
    "s": 55.738,
    "l": 23.922
  },
  "oklch": {
    "l": 0.33836,
    "c": 0.12331,
    "h": 318.7
  },
  "luminance": 0.03359
}

Semantic roles & 50–950 ramp

primary
#511B5F
secondary
#529541
accent
#DF4968
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511B5F

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

Preview Lab → · Contrast checker → · Palette generator →

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