#511A65#511A65

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

Color values

HEX#511A65
RGBrgb(81, 26, 101)
HSLhsl(284, 59%, 25%)
HSVhsv(284, 74%, 40%)
CMYKcmyk(19.8%, 74.3%, 0%, 60.4%)
CIE-LABlab(21.68, 37.89, -32.62)
CIE-LCHlch(21.68, 49.99, 319.27°)
OKLaboklab(34.15% 0.0934 -0.0918)
OKLCHoklch(34.15% 0.131 315.5)
XYZxyz(6.1113, 3.4279, 12.6491)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A65 #2E651A
analogous
#2C1A65 #511A65 #651A54
triadic
#511A65 #65511A #1A6551
tetradic
#511A65 #652C1A #2E651A #1A5465
square
#511A65 #652C1A #2E651A #1A5465
split-complementary
#511A65 #54651A #1A652C
monochromatic
#140618 #2A0D34 #511A65 #782796 #9F33C6

Accessibility & contrast

On white

12.46
#511A65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511A65
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A65#FFFFFF#000000##FFFFFF
##511A651.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003167
Deuteranopia (green-blind)
#193563
Tritanopia (blue-blind)
#50293D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511a65;
/* rgb */ color: rgb(81, 26, 101);
/* oklch */ color: oklch(34.2% 0.131 315.5);
Tailwind
colors: {
  custom: {
    50: '#855c91',
    500: '#511a65',
    950: '#000000',
  },
}
SCSS
$custom: #511a65;
$custom-light: #855c91;
$custom-dark: #000000;
JSON
{
  "hex": "#511a65",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 101
  },
  "hsl": {
    "h": 284,
    "s": 59.055,
    "l": 24.902
  },
  "oklch": {
    "l": 0.3415,
    "c": 0.13095,
    "h": 315.5
  },
  "luminance": 0.03428
}

Semantic roles & 50–950 ramp

primary
#511A65
secondary
#589B40
accent
#E2466F
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511A65

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

Preview Lab → · Contrast checker → · Palette generator →

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