#511661#511661

#511661 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.4% C 0.132 H 318.1°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#511661
RGBrgb(81, 22, 97)
HSLhsl(287, 63%, 23%)
HSVhsv(287, 77%, 38%)
CMYKcmyk(16.5%, 77.3%, 0%, 62%)
CIE-LABlab(20.78, 38.76, -31.44)
CIE-LCHlch(20.78, 49.91, 320.95°)
OKLaboklab(33.41% 0.0983 -0.0883)
OKLCHoklch(33.41% 0.132 318.1)
XYZxyz(5.8376, 3.1865, 11.6145)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511661 #266116
analogous
#2B1661 #511661 #61164B
triadic
#511661 #615116 #166151
tetradic
#511661 #612B16 #266116 #164B61
square
#511661 #612B16 #266116 #164B61
split-complementary
#511661 #4B6116 #16612B
monochromatic
#150619 #270B2F #511661 #7B2193 #A42DC5

Accessibility & contrast

On white

12.83
#511661 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#511661 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511661
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511661#FFFFFF#000000##FFFFFF
##5116611.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E63
Deuteranopia (green-blind)
#19345F
Tritanopia (blue-blind)
#51253A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511661;
/* rgb */ color: rgb(81, 22, 97);
/* oklch */ color: oklch(33.4% 0.132 318.1);
Tailwind
colors: {
  custom: {
    50: '#855a8e',
    500: '#511661',
    950: '#000000',
  },
}
SCSS
$custom: #511661;
$custom-light: #855a8e;
$custom-dark: #000000;
JSON
{
  "hex": "#511661",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 97
  },
  "hsl": {
    "h": 287.2,
    "s": 63.025,
    "l": 23.333
  },
  "oklch": {
    "l": 0.33412,
    "c": 0.13217,
    "h": 318.1
  },
  "luminance": 0.03186
}

Semantic roles & 50–950 ramp

primary
#511661
secondary
#4F983B
accent
#E64265
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511661

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

Preview Lab → · Contrast checker → · Palette generator →

#511661 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva