#51116C#51116C

#51116C is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.8% C 0.148 H 313.0°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#51116C
RGBrgb(81, 17, 108)
HSLhsl(282, 73%, 25%)
HSVhsv(282, 84%, 42%)
CMYKcmyk(25%, 84.3%, 0%, 57.6%)
CIE-LABlab(20.95, 43.07, -38.36)
CIE-LCHlch(20.95, 57.68, 318.30°)
OKLaboklab(33.8% 0.1013 -0.1086)
OKLCHoklch(33.8% 0.148 313)
XYZxyz(6.3001, 3.2331, 14.4766)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51116C #2C6C11
analogous
#24116C #51116C #6C115A
triadic
#51116C #6C5111 #116C51
tetradic
#51116C #6C2411 #2C6C11 #115A6C
square
#51116C #6C2411 #2C6C11 #115A6C
split-complementary
#51116C #5A6C11 #116C24
monochromatic
#14041A #290937 #51116C #7919A1 #A022D6

Accessibility & contrast

On white

12.75
#51116C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#51116C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51116C
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51116C#FFFFFF#000000##FFFFFF
##51116C1.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6E
Deuteranopia (green-blind)
#03346A
Tritanopia (blue-blind)
#4E283F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #51116c;
/* rgb */ color: rgb(81, 17, 108);
/* oklch */ color: oklch(33.8% 0.148 313.0);
Tailwind
colors: {
  custom: {
    50: '#865897',
    500: '#51116c',
    950: '#000000',
  },
}
SCSS
$custom: #51116c;
$custom-light: #865897;
$custom-dark: #000000;
JSON
{
  "hex": "#51116c",
  "rgb": {
    "r": 81,
    "g": 17,
    "b": 108
  },
  "hsl": {
    "h": 282.198,
    "s": 72.8,
    "l": 24.51
  },
  "oklch": {
    "l": 0.33804,
    "c": 0.14848,
    "h": 313
  },
  "luminance": 0.03233
}

Semantic roles & 50–950 ramp

primary
#51116C
secondary
#56A435
accent
#EF386F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #51116C

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

Preview Lab → · Contrast checker → · Palette generator →

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