#511665#511665

#511665 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.7% C 0.136 H 315.9°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#511665
RGBrgb(81, 22, 101)
HSLhsl(285, 64%, 24%)
HSVhsv(285, 78%, 40%)
CMYKcmyk(19.8%, 78.2%, 0%, 60.4%)
CIE-LABlab(21.07, 39.63, -33.61)
CIE-LCHlch(21.07, 51.96, 319.70°)
OKLaboklab(33.71% 0.0978 -0.0947)
OKLCHoklch(33.71% 0.136 315.9)
XYZxyz(6.0288, 3.2630, 12.6216)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511665 #2A6516
analogous
#2A1665 #511665 #651652
triadic
#511665 #655116 #166551
tetradic
#511665 #652A16 #2A6516 #165265
square
#511665 #652A16 #2A6516 #165265
split-complementary
#511665 #526516 #16652A
monochromatic
#140519 #290B33 #511665 #792197 #A22CCA

Accessibility & contrast

On white

12.71
#511665 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#511665 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511665
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511665#FFFFFF#000000##FFFFFF
##5116651.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F67
Deuteranopia (green-blind)
#153463
Tritanopia (blue-blind)
#50273C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511665;
/* rgb */ color: rgb(81, 22, 101);
/* oklch */ color: oklch(33.7% 0.136 315.9);
Tailwind
colors: {
  custom: {
    50: '#855a91',
    500: '#511665',
    950: '#000000',
  },
}
SCSS
$custom: #511665;
$custom-light: #855a91;
$custom-dark: #000000;
JSON
{
  "hex": "#511665",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 101
  },
  "hsl": {
    "h": 284.81,
    "s": 64.228,
    "l": 24.118
  },
  "oklch": {
    "l": 0.33712,
    "c": 0.13614,
    "h": 315.9
  },
  "luminance": 0.03263
}

Semantic roles & 50–950 ramp

primary
#511665
secondary
#549C3B
accent
#E7416B
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511665

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

Preview Lab → · Contrast checker → · Palette generator →

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