#51106D#51106D

#51106D is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.8% C 0.150 H 312.6°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#51106D
RGBrgb(81, 16, 109)
HSLhsl(282, 74%, 25%)
HSVhsv(282, 85%, 43%)
CMYKcmyk(25.7%, 85.3%, 0%, 57.3%)
CIE-LABlab(20.92, 43.62, -39.07)
CIE-LCHlch(20.92, 58.56, 318.15°)
OKLaboklab(33.81% 0.1018 -0.1107)
OKLCHoklch(33.81% 0.15 312.6)
XYZxyz(6.3384, 3.2242, 14.7535)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51106D #2C6D10
analogous
#22106D #51106D #6D105B
triadic
#51106D #6D5110 #106D51
tetradic
#51106D #6D2210 #2C6D10 #105B6D
square
#51106D #6D2210 #2C6D10 #105B6D
split-complementary
#51106D #5B6D10 #106D22
monochromatic
#14041B #290838 #51106D #7918A2 #A020D8

Accessibility & contrast

On white

12.77
#51106D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#51106D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51106D
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51106D#FFFFFF#000000##FFFFFF
##51106D1.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6F
Deuteranopia (green-blind)
#00346B
Tritanopia (blue-blind)
#4E283F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #51106d;
/* rgb */ color: rgb(81, 16, 109);
/* oklch */ color: oklch(33.8% 0.150 312.6);
Tailwind
colors: {
  custom: {
    50: '#865897',
    500: '#51106d',
    950: '#000000',
  },
}
SCSS
$custom: #51106d;
$custom-light: #865897;
$custom-dark: #000000;
JSON
{
  "hex": "#51106d",
  "rgb": {
    "r": 81,
    "g": 16,
    "b": 109
  },
  "hsl": {
    "h": 281.935,
    "s": 74.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.33806,
    "c": 0.15038,
    "h": 312.6
  },
  "luminance": 0.03224
}

Semantic roles & 50–950 ramp

primary
#51106D
secondary
#56A534
accent
#F1376F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #51106D

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

Preview Lab → · Contrast checker → · Palette generator →

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