#511A66#511A66

#511A66 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.2% C 0.132 H 315.0°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#511A66
RGBrgb(81, 26, 102)
HSLhsl(283, 59%, 25%)
HSVhsv(283, 75%, 40%)
CMYKcmyk(20.6%, 74.5%, 0%, 60%)
CIE-LABlab(21.75, 38.11, -33.16)
CIE-LCHlch(21.75, 50.52, 318.98°)
OKLaboklab(34.22% 0.0933 -0.0934)
OKLCHoklch(34.22% 0.132 315)
XYZxyz(6.1606, 3.4476, 12.9087)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A66 #2F661A
analogous
#2B1A66 #511A66 #661A55
triadic
#511A66 #66511A #1A6651
tetradic
#511A66 #662B1A #2F661A #1A5566
square
#511A66 #662B1A #2F661A #1A5566
split-complementary
#511A66 #55661A #1A662B
monochromatic
#130618 #2A0E35 #511A66 #782697 #9E33C8

Accessibility & contrast

On white

12.43
#511A66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511A66
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A66#FFFFFF#000000##FFFFFF
##511A661.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511a66;
/* rgb */ color: rgb(81, 26, 102);
/* oklch */ color: oklch(34.2% 0.132 315.0);
Tailwind
colors: {
  custom: {
    50: '#855c92',
    500: '#511a66',
    950: '#000000',
  },
}
SCSS
$custom: #511a66;
$custom-light: #855c92;
$custom-dark: #000000;
JSON
{
  "hex": "#511a66",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 102
  },
  "hsl": {
    "h": 283.421,
    "s": 59.375,
    "l": 25.098
  },
  "oklch": {
    "l": 0.34224,
    "c": 0.132,
    "h": 315
  },
  "luminance": 0.03447
}

Semantic roles & 50–950 ramp

primary
#511A66
secondary
#599C40
accent
#E34571
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511A66

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

Preview Lab → · Contrast checker → · Palette generator →

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