#511A67#511A67

#511A67 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.3% C 0.133 H 314.5°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#511A67
RGBrgb(81, 26, 103)
HSLhsl(283, 60%, 25%)
HSVhsv(283, 75%, 40%)
CMYKcmyk(21.4%, 74.8%, 0%, 59.6%)
CIE-LABlab(21.83, 38.34, -33.69)
CIE-LCHlch(21.83, 51.04, 318.69°)
OKLaboklab(34.3% 0.0932 -0.095)
OKLCHoklch(34.3% 0.133 314.5)
XYZxyz(6.2105, 3.4676, 13.1715)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A67 #30671A
analogous
#2A1A67 #511A67 #671A56
triadic
#511A67 #67511A #1A6751
tetradic
#511A67 #672A1A #30671A #1A5667
square
#511A67 #672A1A #30671A #1A5667
split-complementary
#511A67 #56671A #1A672A
monochromatic
#130618 #2B0E36 #511A67 #772698 #9E33C9

Accessibility & contrast

On white

12.40
#511A67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#511A67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A67
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A67#FFFFFF#000000##FFFFFF
##511A671.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003169
Deuteranopia (green-blind)
#163665
Tritanopia (blue-blind)
#4F2A3E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511a67;
/* rgb */ color: rgb(81, 26, 103);
/* oklch */ color: oklch(34.3% 0.133 314.5);
Tailwind
colors: {
  custom: {
    50: '#855c93',
    500: '#511a67',
    950: '#000000',
  },
}
SCSS
$custom: #511a67;
$custom-light: #855c93;
$custom-dark: #000000;
JSON
{
  "hex": "#511a67",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 103
  },
  "hsl": {
    "h": 282.857,
    "s": 59.69,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34299,
    "c": 0.13303,
    "h": 314.5
  },
  "luminance": 0.03467
}

Semantic roles & 50–950 ramp

primary
#511A67
secondary
#5B9D40
accent
#E34572
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511A67

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

Preview Lab → · Contrast checker → · Palette generator →

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