#51116A#51116A

#51116A is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.6% C 0.147 H 313.9°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#51116A
RGBrgb(81, 17, 106)
HSLhsl(283, 72%, 24%)
HSVhsv(283, 84%, 42%)
CMYKcmyk(23.6%, 84%, 0%, 58.4%)
CIE-LABlab(20.79, 42.63, -37.32)
CIE-LCHlch(20.79, 56.66, 318.80°)
OKLaboklab(33.64% 0.1017 -0.1055)
OKLCHoklch(33.64% 0.147 313.9)
XYZxyz(6.1949, 3.1910, 13.9225)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51116A #2A6A11
analogous
#25116A #51116A #6A1157
triadic
#51116A #6A5111 #116A51
tetradic
#51116A #6A2511 #2A6A11 #11576A
square
#51116A #6A2511 #2A6A11 #11576A
split-complementary
#51116A #576A11 #116A25
monochromatic
#14041A #290935 #51116A #79199F #A222D3

Accessibility & contrast

On white

12.82
#51116A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#51116A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51116A
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51116A#FFFFFF#000000##FFFFFF
##51116A1.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6C
Deuteranopia (green-blind)
#073368
Tritanopia (blue-blind)
#4E273E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #51116a;
/* rgb */ color: rgb(81, 17, 106);
/* oklch */ color: oklch(33.6% 0.147 313.9);
Tailwind
colors: {
  custom: {
    50: '#865895',
    500: '#51116a',
    950: '#000000',
  },
}
SCSS
$custom: #51116a;
$custom-light: #865895;
$custom-dark: #000000;
JSON
{
  "hex": "#51116a",
  "rgb": {
    "r": 81,
    "g": 17,
    "b": 106
  },
  "hsl": {
    "h": 283.146,
    "s": 72.358,
    "l": 24.118
  },
  "oklch": {
    "l": 0.33641,
    "c": 0.14657,
    "h": 313.9
  },
  "luminance": 0.03191
}

Semantic roles & 50–950 ramp

primary
#51116A
secondary
#54A235
accent
#EF396C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #51116A

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

Preview Lab → · Contrast checker → · Palette generator →

#51116A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva