#511863#511863

#511863 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.8% C 0.132 H 316.8°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#511863
RGBrgb(81, 24, 99)
HSLhsl(286, 61%, 24%)
HSVhsv(286, 76%, 39%)
CMYKcmyk(18.2%, 75.8%, 0%, 61.2%)
CIE-LABlab(21.22, 38.34, -32.05)
CIE-LCHlch(21.22, 49.97, 320.11°)
OKLaboklab(33.78% 0.0959 -0.0901)
OKLCHoklch(33.78% 0.132 316.8)
XYZxyz(5.9718, 3.3037, 12.1251)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511863 #2A6318
analogous
#2C1863 #511863 #631850
triadic
#511863 #635118 #186351
tetradic
#511863 #632C18 #2A6318 #185063
square
#511863 #632C18 #2A6318 #185063
split-complementary
#511863 #506318 #18632C
monochromatic
#140619 #290C32 #511863 #792494 #A230C6

Accessibility & contrast

On white

12.65
#511863 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511863
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511863#FFFFFF#000000##FFFFFF
##5118631.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511863;
/* rgb */ color: rgb(81, 24, 99);
/* oklch */ color: oklch(33.8% 0.132 316.8);
Tailwind
colors: {
  custom: {
    50: '#855b90',
    500: '#511863',
    950: '#000000',
  },
}
SCSS
$custom: #511863;
$custom-light: #855b90;
$custom-dark: #000000;
JSON
{
  "hex": "#511863",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 99
  },
  "hsl": {
    "h": 285.6,
    "s": 60.976,
    "l": 24.118
  },
  "oklch": {
    "l": 0.33775,
    "c": 0.13158,
    "h": 316.8
  },
  "luminance": 0.03303
}

Semantic roles & 50–950 ramp

primary
#511863
secondary
#54993E
accent
#E4446A
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511863

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

Preview Lab → · Contrast checker → · Palette generator →

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