#511F55#511F55

#511F55 is a dark, moderate purple. Relative luminance 0.034; OKLCH L 33.7% C 0.107 H 324.6°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#511F55
RGBrgb(81, 31, 85)
HSLhsl(296, 47%, 23%)
HSVhsv(296, 64%, 33%)
CMYKcmyk(4.7%, 63.5%, 0%, 66.7%)
CIE-LABlab(21.53, 31.91, -22.28)
CIE-LCHlch(21.53, 38.92, 325.08°)
OKLaboklab(33.7% 0.0869 -0.0617)
OKLCHoklch(33.7% 0.107 324.6)
XYZxyz(5.5229, 3.3855, 8.9551)
Luminance0.0338 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F55 #23551F
analogous
#361F55 #511F55 #551F3E
triadic
#511F55 #55511F #1F5551
tetradic
#511F55 #55361F #23551F #1F3E55
square
#511F55 #55361F #23551F #1F3E55
split-complementary
#511F55 #3E551F #1F5536
monochromatic
#150816 #260F28 #511F55 #7C2F82 #A640AF

Accessibility & contrast

On white

12.52
#511F55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#511F55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F55
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F55#FFFFFF#000000##FFFFFF
##511F551.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173057
Deuteranopia (green-blind)
#283654
Tritanopia (blue-blind)
#532636
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511f55;
/* rgb */ color: rgb(81, 31, 85);
/* oklch */ color: oklch(33.7% 0.107 324.6);
Tailwind
colors: {
  custom: {
    50: '#845e85',
    500: '#511f55',
    950: '#000000',
  },
}
SCSS
$custom: #511f55;
$custom-light: #845e85;
$custom-dark: #000000;
JSON
{
  "hex": "#511f55",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 85
  },
  "hsl": {
    "h": 295.556,
    "s": 46.552,
    "l": 22.745
  },
  "oklch": {
    "l": 0.33701,
    "c": 0.10658,
    "h": 324.6
  },
  "luminance": 0.03385
}

Semantic roles & 50–950 ramp

primary
#511F55
secondary
#4B8A46
accent
#D6525B
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511F55

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

Preview Lab → · Contrast checker → · Palette generator →

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