#511165#511165

#511165 is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.2% C 0.142 H 316.4°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#511165
RGBrgb(81, 17, 101)
HSLhsl(286, 71%, 23%)
HSVhsv(286, 83%, 40%)
CMYKcmyk(19.8%, 83.2%, 0%, 60.4%)
CIE-LABlab(20.40, 41.55, -34.68)
CIE-LCHlch(20.40, 54.12, 320.14°)
OKLaboklab(33.24% 0.1027 -0.0978)
OKLCHoklch(33.24% 0.142 316.4)
XYZxyz(5.9424, 3.0901, 12.5928)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511165 #256511
analogous
#271165 #511165 #65114F
triadic
#511165 #655111 #116551
tetradic
#511165 #652711 #256511 #114F65
square
#511165 #652711 #256511 #114F65
split-complementary
#511165 #4F6511 #116527
monochromatic
#15041A #270831 #511165 #7B1A99 #A523CE

Accessibility & contrast

On white

12.98
#511165 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#511165 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511165
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511165#FFFFFF#000000##FFFFFF
##5111651.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D67
Deuteranopia (green-blind)
#103363
Tritanopia (blue-blind)
#50243B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #511165;
/* rgb */ color: rgb(81, 17, 101);
/* oklch */ color: oklch(33.2% 0.142 316.4);
Tailwind
colors: {
  custom: {
    50: '#855891',
    500: '#511165',
    950: '#000000',
  },
}
SCSS
$custom: #511165;
$custom-light: #855891;
$custom-dark: #000000;
JSON
{
  "hex": "#511165",
  "rgb": {
    "r": 81,
    "g": 17,
    "b": 101
  },
  "hsl": {
    "h": 285.714,
    "s": 71.186,
    "l": 23.137
  },
  "oklch": {
    "l": 0.33241,
    "c": 0.14181,
    "h": 316.4
  },
  "luminance": 0.0309
}

Semantic roles & 50–950 ramp

primary
#511165
secondary
#4E9D35
accent
#EE3A65
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511165

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

Preview Lab → · Contrast checker → · Palette generator →

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