#511A62#511A62

#511A62 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 33.9% C 0.128 H 317.1°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#511A62
RGBrgb(81, 26, 98)
HSLhsl(286, 58%, 24%)
HSVhsv(286, 73%, 38%)
CMYKcmyk(17.3%, 73.5%, 0%, 61.6%)
CIE-LABlab(21.47, 37.21, -30.99)
CIE-LCHlch(21.47, 48.43, 320.21°)
OKLaboklab(33.93% 0.0937 -0.087)
OKLCHoklch(33.93% 0.128 317.1)
XYZxyz(5.9670, 3.3702, 11.8891)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A62 #2B621A
analogous
#2D1A62 #511A62 #621A4F
triadic
#511A62 #62511A #1A6251
tetradic
#511A62 #622D1A #2B621A #1A4F62
square
#511A62 #622D1A #2B621A #1A4F62
split-complementary
#511A62 #4F621A #1A622D
monochromatic
#140618 #290D32 #511A62 #792792 #A134C3

Accessibility & contrast

On white

12.54
#511A62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#511A62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A62
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A62#FFFFFF#000000##FFFFFF
##511A621.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003064
Deuteranopia (green-blind)
#1B3560
Tritanopia (blue-blind)
#50283C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511a62;
/* rgb */ color: rgb(81, 26, 98);
/* oklch */ color: oklch(33.9% 0.128 317.1);
Tailwind
colors: {
  custom: {
    50: '#855c8f',
    500: '#511a62',
    950: '#000000',
  },
}
SCSS
$custom: #511a62;
$custom-light: #855c8f;
$custom-dark: #000000;
JSON
{
  "hex": "#511a62",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 98
  },
  "hsl": {
    "h": 285.833,
    "s": 58.065,
    "l": 24.314
  },
  "oklch": {
    "l": 0.3393,
    "c": 0.12785,
    "h": 317.1
  },
  "luminance": 0.0337
}

Semantic roles & 50–950 ramp

primary
#511A62
secondary
#559840
accent
#E1476B
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511A62

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

Preview Lab → · Contrast checker → · Palette generator →

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