#511861#511861

#511861 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.6% C 0.130 H 317.9°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#511861
RGBrgb(81, 24, 97)
HSLhsl(287, 60%, 24%)
HSVhsv(287, 75%, 38%)
CMYKcmyk(16.5%, 75.3%, 0%, 62%)
CIE-LABlab(21.08, 37.90, -30.96)
CIE-LCHlch(21.08, 48.93, 320.75°)
OKLaboklab(33.63% 0.0961 -0.0869)
OKLCHoklch(33.63% 0.13 317.9)
XYZxyz(5.8773, 3.2659, 11.6277)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511861 #286118
analogous
#2C1861 #511861 #61184C
triadic
#511861 #615118 #186151
tetradic
#511861 #612C18 #286118 #184C61
square
#511861 #612C18 #286118 #184C61
split-complementary
#511861 #4C6118 #18612C
monochromatic
#140619 #280C30 #511861 #7A2492 #A330C3

Accessibility & contrast

On white

12.70
#511861 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511861
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511861#FFFFFF#000000##FFFFFF
##5118611.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F63
Deuteranopia (green-blind)
#1B345F
Tritanopia (blue-blind)
#50263B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511861;
/* rgb */ color: rgb(81, 24, 97);
/* oklch */ color: oklch(33.6% 0.130 317.9);
Tailwind
colors: {
  custom: {
    50: '#855b8e',
    500: '#511861',
    950: '#000000',
  },
}
SCSS
$custom: #511861;
$custom-light: #855b8e;
$custom-dark: #000000;
JSON
{
  "hex": "#511861",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 97
  },
  "hsl": {
    "h": 286.849,
    "s": 60.331,
    "l": 23.725
  },
  "oklch": {
    "l": 0.33628,
    "c": 0.12956,
    "h": 317.9
  },
  "luminance": 0.03266
}

Semantic roles & 50–950 ramp

primary
#511861
secondary
#51973D
accent
#E34467
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511861

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

Preview Lab → · Contrast checker → · Palette generator →

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