#51116E#51116E

#51116E is a dark, vivid purple. Relative luminance 0.033; OKLCH L 34.0% C 0.150 H 312.1°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#51116E
RGBrgb(81, 17, 110)
HSLhsl(281, 73%, 25%)
HSVhsv(281, 85%, 43%)
CMYKcmyk(26.4%, 84.5%, 0%, 56.9%)
CIE-LABlab(21.12, 43.51, -39.40)
CIE-LCHlch(21.12, 58.69, 317.84°)
OKLaboklab(33.97% 0.1008 -0.1116)
OKLCHoklch(33.97% 0.15 312.1)
XYZxyz(6.4077, 3.2762, 15.0437)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51116E #2E6E11
analogous
#22116E #51116E #6E115D
triadic
#51116E #6E5111 #116E51
tetradic
#51116E #6E2211 #2E6E11 #115D6E
square
#51116E #6E2211 #2E6E11 #115D6E
split-complementary
#51116E #5D6E11 #116E22
monochromatic
#14041B #2A0939 #51116E #7819A3 #9F21D8

Accessibility & contrast

On white

12.69
#51116E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#51116E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51116E
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51116E#FFFFFF#000000##FFFFFF
##51116E1.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#00346C
Tritanopia (blue-blind)
#4D2940
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #51116e;
/* rgb */ color: rgb(81, 17, 110);
/* oklch */ color: oklch(34.0% 0.150 312.1);
Tailwind
colors: {
  custom: {
    50: '#865898',
    500: '#51116e',
    950: '#000000',
  },
}
SCSS
$custom: #51116e;
$custom-light: #865898;
$custom-dark: #000000;
JSON
{
  "hex": "#51116e",
  "rgb": {
    "r": 81,
    "g": 17,
    "b": 110
  },
  "hsl": {
    "h": 281.29,
    "s": 73.228,
    "l": 24.902
  },
  "oklch": {
    "l": 0.3397,
    "c": 0.15039,
    "h": 312.1
  },
  "luminance": 0.03276
}

Semantic roles & 50–950 ramp

primary
#51116E
secondary
#58A535
accent
#F03871
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #51116E

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

Preview Lab → · Contrast checker → · Palette generator →

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