#511C55#511C55

#511C55 is a dark, moderate purple. Relative luminance 0.032; OKLCH L 33.3% C 0.112 H 324.8°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#511C55
RGBrgb(81, 28, 85)
HSLhsl(296, 50%, 22%)
HSVhsv(296, 67%, 33%)
CMYKcmyk(4.7%, 67.1%, 0%, 66.7%)
CIE-LABlab(20.97, 33.45, -23.16)
CIE-LCHlch(20.97, 40.69, 325.30°)
OKLaboklab(33.29% 0.0912 -0.0642)
OKLCHoklch(33.29% 0.112 324.8)
XYZxyz(5.4482, 3.2360, 8.9302)
Luminance0.0324 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C55 #20551C
analogous
#341C55 #511C55 #551C3D
triadic
#511C55 #55511C #1C5551
tetradic
#511C55 #55341C #20551C #1C3D55
square
#511C55 #55341C #20551C #1C3D55
split-complementary
#511C55 #3D551C #1C5534
monochromatic
#160817 #250D27 #511C55 #7D2B83 #A93AB1

Accessibility & contrast

On white

12.75
#511C55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#511C55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511C55
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C55#FFFFFF#000000##FFFFFF
##511C551.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122E57
Deuteranopia (green-blind)
#263553
Tritanopia (blue-blind)
#532435
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511c55;
/* rgb */ color: rgb(81, 28, 85);
/* oklch */ color: oklch(33.3% 0.112 324.8);
Tailwind
colors: {
  custom: {
    50: '#845c85',
    500: '#511c55',
    950: '#000000',
  },
}
SCSS
$custom: #511c55;
$custom-light: #845c85;
$custom-dark: #000000;
JSON
{
  "hex": "#511c55",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 85
  },
  "hsl": {
    "h": 295.789,
    "s": 50.442,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33293,
    "c": 0.11152,
    "h": 324.8
  },
  "luminance": 0.03236
}

Semantic roles & 50–950 ramp

primary
#511C55
secondary
#478B42
accent
#DA4E58
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511C55

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

Preview Lab → · Contrast checker → · Palette generator →

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