#511B52#511B52

#511B52 is a dark, moderate purple. Relative luminance 0.031; OKLCH L 33.0% C 0.110 H 327.0°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#511B52
RGBrgb(81, 27, 82)
HSLhsl(299, 50%, 21%)
HSVhsv(299, 67%, 32%)
CMYKcmyk(1.2%, 67.1%, 0%, 67.8%)
CIE-LABlab(20.61, 33.33, -21.71)
CIE-LCHlch(20.61, 39.78, 326.92°)
OKLaboklab(32.98% 0.0924 -0.06)
OKLCHoklch(32.98% 0.11 327)
XYZxyz(5.3082, 3.1427, 8.3080)
Luminance0.0314 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B52 #1C521B
analogous
#361B52 #511B52 #521B38
triadic
#511B52 #52511B #1B5251
tetradic
#511B52 #52361B #1C521B #1B3852
square
#511B52 #52361B #1C521B #1B3852
split-complementary
#511B52 #38521B #1B5236
monochromatic
#170817 #240C24 #511B52 #7E2A80 #AC39AE

Accessibility & contrast

On white

12.90
#511B52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#511B52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B52
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B52#FFFFFF#000000##FFFFFF
##511B521.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142D54
Deuteranopia (green-blind)
#273451
Tritanopia (blue-blind)
#532233
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511b52;
/* rgb */ color: rgb(81, 27, 82);
/* oklch */ color: oklch(33.0% 0.110 327.0);
Tailwind
colors: {
  custom: {
    50: '#845c83',
    500: '#511b52',
    950: '#000000',
  },
}
SCSS
$custom: #511b52;
$custom-light: #845c83;
$custom-dark: #000000;
JSON
{
  "hex": "#511b52",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 82
  },
  "hsl": {
    "h": 298.909,
    "s": 50.459,
    "l": 21.373
  },
  "oklch": {
    "l": 0.32975,
    "c": 0.11014,
    "h": 327
  },
  "luminance": 0.03142
}

Semantic roles & 50–950 ramp

primary
#511B52
secondary
#428841
accent
#DA4E50
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511B52

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

Preview Lab → · Contrast checker → · Palette generator →

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