#51104B#51104B

#51104B is a dark, moderate purple. Relative luminance 0.026; OKLCH L 31.3% C 0.119 H 332.1°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#51104B
RGBrgb(81, 16, 75)
HSLhsl(306, 67%, 19%)
HSVhsv(306, 80%, 32%)
CMYKcmyk(0%, 80.2%, 7.4%, 68.2%)
CIE-LABlab(18.49, 36.78, -20.30)
CIE-LCHlch(18.49, 42.01, 331.10°)
OKLaboklab(31.31% 0.1056 -0.0558)
OKLCHoklch(31.31% 0.119 332.1)
XYZxyz(4.8486, 2.6283, 6.9072)
Luminance0.0263 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51104B #105116
analogous
#371051 #51104B #51102B
triadic
#51104B #4B5110 #104B51
tetradic
#51104B #513710 #105116 #102B51
square
#51104B #513710 #105116 #102B51
split-complementary
#51104B #2B5110 #105137
monochromatic
#1A0518 #1E061C #51104B #841A7A #B724AA

Accessibility & contrast

On white

13.77
#51104B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51104B
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51104B#FFFFFF#000000##FFFFFF
##51104B1.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C274D
Deuteranopia (green-blind)
#253049
Tritanopia (blue-blind)
#55172C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #51104b;
/* rgb */ color: rgb(81, 16, 75);
/* oklch */ color: oklch(31.3% 0.119 332.1);
Tailwind
colors: {
  custom: {
    50: '#85567d',
    500: '#51104b',
    950: '#000000',
  },
}
SCSS
$custom: #51104b;
$custom-light: #85567d;
$custom-dark: #000000;
JSON
{
  "hex": "#51104b",
  "rgb": {
    "r": 81,
    "g": 16,
    "b": 75
  },
  "hsl": {
    "h": 305.538,
    "s": 67.01,
    "l": 19.02
  },
  "oklch": {
    "l": 0.3131,
    "c": 0.11941,
    "h": 332.1
  },
  "luminance": 0.02628
}

Semantic roles & 50–950 ramp

primary
#51104B
secondary
#328B3A
accent
#EA4E3E
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #51104B

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

Preview Lab → · Contrast checker → · Palette generator →

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