#511C58#511C58

#511C58 is a dark, moderate purple. Relative luminance 0.033; OKLCH L 33.5% C 0.115 H 322.9°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#511C58
RGBrgb(81, 28, 88)
HSLhsl(293, 52%, 23%)
HSVhsv(293, 68%, 35%)
CMYKcmyk(8%, 68.2%, 0%, 65.5%)
CIE-LABlab(21.15, 34.08, -24.88)
CIE-LCHlch(21.15, 42.19, 323.88°)
OKLaboklab(33.49% 0.0913 -0.0692)
OKLCHoklch(33.49% 0.115 322.9)
XYZxyz(5.5699, 3.2847, 9.5713)
Luminance0.0328 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C58 #23581C
analogous
#331C58 #511C58 #581C41
triadic
#511C58 #58511C #1C5851
tetradic
#511C58 #58331C #23581C #1C4158
square
#511C58 #58331C #23581C #1C4158
split-complementary
#511C58 #41581C #1C5833
monochromatic
#150717 #260D2A #511C58 #7C2B86 #A63AB5

Accessibility & contrast

On white

12.68
#511C58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#511C58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511C58
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C58#FFFFFF#000000##FFFFFF
##511C581.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2F5A
Deuteranopia (green-blind)
#243556
Tritanopia (blue-blind)
#522537
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511c58;
/* rgb */ color: rgb(81, 28, 88);
/* oklch */ color: oklch(33.5% 0.115 322.9);
Tailwind
colors: {
  custom: {
    50: '#845c87',
    500: '#511c58',
    950: '#000000',
  },
}
SCSS
$custom: #511c58;
$custom-light: #845c87;
$custom-dark: #000000;
JSON
{
  "hex": "#511c58",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 88
  },
  "hsl": {
    "h": 293,
    "s": 51.724,
    "l": 22.745
  },
  "oklch": {
    "l": 0.33487,
    "c": 0.11457,
    "h": 322.9
  },
  "luminance": 0.03284
}

Semantic roles & 50–950 ramp

primary
#511C58
secondary
#4B8E42
accent
#DB4D5D
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511C58

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

Preview Lab → · Contrast checker → · Palette generator →

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