#511764#511764

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

Color values

HEX#511764
RGBrgb(81, 23, 100)
HSLhsl(285, 63%, 24%)
HSVhsv(285, 77%, 39%)
CMYKcmyk(19%, 77%, 0%, 60.8%)
CIE-LABlab(21.14, 38.99, -32.83)
CIE-LCHlch(21.14, 50.97, 319.90°)
OKLaboklab(33.74% 0.0969 -0.0924)
OKLCHoklch(33.74% 0.134 316.4)
XYZxyz(5.9996, 3.2825, 12.3717)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511764 #2A6417
analogous
#2B1764 #511764 #641751
triadic
#511764 #645117 #176451
tetradic
#511764 #642B17 #2A6417 #175164
square
#511764 #642B17 #2A6417 #175164
split-complementary
#511764 #516417 #17642B
monochromatic
#140619 #290C32 #511764 #792296 #A22EC8

Accessibility & contrast

On white

12.68
#511764 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#511764 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511764
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511764#FFFFFF#000000##FFFFFF
##5117641.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511764;
/* rgb */ color: rgb(81, 23, 100);
/* oklch */ color: oklch(33.7% 0.134 316.4);
Tailwind
colors: {
  custom: {
    50: '#855a91',
    500: '#511764',
    950: '#000000',
  },
}
SCSS
$custom: #511764;
$custom-light: #855a91;
$custom-dark: #000000;
JSON
{
  "hex": "#511764",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 100
  },
  "hsl": {
    "h": 285.195,
    "s": 62.602,
    "l": 24.118
  },
  "oklch": {
    "l": 0.33741,
    "c": 0.13389,
    "h": 316.4
  },
  "luminance": 0.03282
}

Semantic roles & 50–950 ramp

primary
#511764
secondary
#549A3C
accent
#E6426A
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040D
muted
#7C797D

Preview Lab

Preview with #511764

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

Preview Lab → · Contrast checker → · Palette generator →

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