#51166C#51166C

#51166C is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.3% C 0.143 H 312.5°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#51166C
RGBrgb(81, 22, 108)
HSLhsl(281, 66%, 25%)
HSVhsv(281, 80%, 42%)
CMYKcmyk(25%, 79.6%, 0%, 57.6%)
CIE-LABlab(21.60, 41.20, -37.32)
CIE-LCHlch(21.60, 55.58, 317.83°)
OKLaboklab(34.26% 0.0967 -0.1055)
OKLCHoklch(34.26% 0.143 312.5)
XYZxyz(6.3865, 3.4060, 14.5055)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51166C #316C16
analogous
#26166C #51166C #6C165C
triadic
#51166C #6C5116 #166C51
tetradic
#51166C #6C2616 #316C16 #165C6C
square
#51166C #6C2616 #316C16 #165C6C
split-complementary
#51166C #5C6C16 #166C26
monochromatic
#130519 #2B0C39 #51166C #77209F #9D2BD2

Accessibility & contrast

On white

12.49
#51166C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#51166C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51166C
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51166C#FFFFFF#000000##FFFFFF
##51166C1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316E
Deuteranopia (green-blind)
#0A356A
Tritanopia (blue-blind)
#4E2A40
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #51166c;
/* rgb */ color: rgb(81, 22, 108);
/* oklch */ color: oklch(34.3% 0.143 312.5);
Tailwind
colors: {
  custom: {
    50: '#855a97',
    500: '#51166c',
    950: '#000000',
  },
}
SCSS
$custom: #51166c;
$custom-light: #855a97;
$custom-dark: #000000;
JSON
{
  "hex": "#51166c",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 108
  },
  "hsl": {
    "h": 281.163,
    "s": 66.154,
    "l": 25.49
  },
  "oklch": {
    "l": 0.3426,
    "c": 0.14314,
    "h": 312.5
  },
  "luminance": 0.03406
}

Semantic roles & 50–950 ramp

primary
#51166C
secondary
#5CA23C
accent
#E93F74
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #51166C

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

Preview Lab → · Contrast checker → · Palette generator →

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