#51104C#51104C

#51104C is a dark, vivid purple. Relative luminance 0.026; OKLCH L 31.4% C 0.120 H 331.4°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#51104C
RGBrgb(81, 16, 76)
HSLhsl(305, 67%, 19%)
HSVhsv(305, 80%, 32%)
CMYKcmyk(0%, 80.2%, 6.2%, 68.2%)
CIE-LABlab(18.55, 36.96, -20.89)
CIE-LCHlch(18.55, 42.45, 330.52°)
OKLaboklab(31.37% 0.1056 -0.0575)
OKLCHoklch(31.37% 0.12 331.4)
XYZxyz(4.8831, 2.6421, 7.0889)
Luminance0.0264 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51104C #105115
analogous
#361051 #51104C #51102C
triadic
#51104C #4C5110 #104C51
tetradic
#51104C #513610 #105115 #102C51
square
#51104C #513610 #105115 #102C51
split-complementary
#51104C #2C5110 #105136
monochromatic
#1A0518 #1E061C #51104C #841A7C #B724AC

Accessibility & contrast

On white

13.74
#51104C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#51104C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51104C
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51104C#FFFFFF#000000##FFFFFF
##51104C1.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A274E
Deuteranopia (green-blind)
#25304A
Tritanopia (blue-blind)
#55182D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #51104c;
/* rgb */ color: rgb(81, 16, 76);
/* oklch */ color: oklch(31.4% 0.120 331.4);
Tailwind
colors: {
  custom: {
    50: '#85567e',
    500: '#51104c',
    950: '#000000',
  },
}
SCSS
$custom: #51104c;
$custom-light: #85567e;
$custom-dark: #000000;
JSON
{
  "hex": "#51104c",
  "rgb": {
    "r": 81,
    "g": 16,
    "b": 76
  },
  "hsl": {
    "h": 304.615,
    "s": 67.01,
    "l": 19.02
  },
  "oklch": {
    "l": 0.31373,
    "c": 0.12026,
    "h": 331.4
  },
  "luminance": 0.02642
}

Semantic roles & 50–950 ramp

primary
#51104C
secondary
#328B39
accent
#EA4B3E
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #51104C

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

Preview Lab → · Contrast checker → · Palette generator →

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