#51116D#51116D

#51116D is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.9% C 0.149 H 312.5°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#51116D
RGBrgb(81, 17, 109)
HSLhsl(282, 73%, 25%)
HSVhsv(282, 84%, 43%)
CMYKcmyk(25.7%, 84.4%, 0%, 57.3%)
CIE-LABlab(21.04, 43.29, -38.88)
CIE-LCHlch(21.04, 58.19, 318.07°)
OKLaboklab(33.89% 0.101 -0.1101)
OKLCHoklch(33.89% 0.149 312.5)
XYZxyz(6.3536, 3.2545, 14.7585)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51116D #2D6D11
analogous
#23116D #51116D #6D115B
triadic
#51116D #6D5111 #116D51
tetradic
#51116D #6D2311 #2D6D11 #115B6D
square
#51116D #6D2311 #2D6D11 #115B6D
split-complementary
#51116D #5B6D11 #116D23
monochromatic
#14041A #2A0938 #51116D #7819A2 #A022D7

Accessibility & contrast

On white

12.72
#51116D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51116D
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51116D#FFFFFF#000000##FFFFFF
##51116D1.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306F
Deuteranopia (green-blind)
#01346B
Tritanopia (blue-blind)
#4E2840
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #51116d;
/* rgb */ color: rgb(81, 17, 109);
/* oklch */ color: oklch(33.9% 0.149 312.5);
Tailwind
colors: {
  custom: {
    50: '#865897',
    500: '#51116d',
    950: '#000000',
  },
}
SCSS
$custom: #51116d;
$custom-light: #865897;
$custom-dark: #000000;
JSON
{
  "hex": "#51116d",
  "rgb": {
    "r": 81,
    "g": 17,
    "b": 109
  },
  "hsl": {
    "h": 281.739,
    "s": 73.016,
    "l": 24.706
  },
  "oklch": {
    "l": 0.33887,
    "c": 0.14944,
    "h": 312.5
  },
  "luminance": 0.03254
}

Semantic roles & 50–950 ramp

primary
#51116D
secondary
#57A535
accent
#F03870
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #51116D

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

Preview Lab → · Contrast checker → · Palette generator →

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