#511655#511655

#511655 is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.6% C 0.121 H 325.2°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#511655
RGBrgb(81, 22, 85)
HSLhsl(296, 59%, 21%)
HSVhsv(296, 74%, 33%)
CMYKcmyk(4.7%, 74.1%, 0%, 66.7%)
CIE-LABlab(19.96, 36.25, -24.75)
CIE-LCHlch(19.96, 43.90, 325.67°)
OKLaboklab(32.57% 0.099 -0.0688)
OKLCHoklch(32.57% 0.121 325.2)
XYZxyz(5.3198, 2.9794, 8.8874)
Luminance0.0298 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511655 #1A5516
analogous
#311655 #511655 #551639
triadic
#511655 #555116 #165551
tetradic
#511655 #553116 #1A5516 #163955
square
#511655 #553116 #1A5516 #163955
split-complementary
#511655 #395516 #165531
monochromatic
#170618 #230924 #511655 #7F2386 #AE2FB6

Accessibility & contrast

On white

13.16
#511655 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#511655 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511655
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511655#FFFFFF#000000##FFFFFF
##5116551.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082C57
Deuteranopia (green-blind)
#233353
Tritanopia (blue-blind)
#532033
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #511655;
/* rgb */ color: rgb(81, 22, 85);
/* oklch */ color: oklch(32.6% 0.121 325.2);
Tailwind
colors: {
  custom: {
    50: '#845985',
    500: '#511655',
    950: '#000000',
  },
}
SCSS
$custom: #511655;
$custom-light: #845985;
$custom-dark: #000000;
JSON
{
  "hex": "#511655",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 85
  },
  "hsl": {
    "h": 296.19,
    "s": 58.879,
    "l": 20.98
  },
  "oklch": {
    "l": 0.32568,
    "c": 0.12051,
    "h": 325.2
  },
  "luminance": 0.02979
}

Semantic roles & 50–950 ramp

primary
#511655
secondary
#408C3A
accent
#E24650
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511655

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

Preview Lab → · Contrast checker → · Palette generator →

#511655 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva