#51105C#51105C

#51105C is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.5% C 0.134 H 321.3°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#51105C
RGBrgb(81, 16, 92)
HSLhsl(291, 70%, 21%)
HSVhsv(291, 83%, 36%)
CMYKcmyk(12%, 82.6%, 0%, 63.9%)
CIE-LABlab(19.61, 40.02, -30.00)
CIE-LCHlch(19.61, 50.02, 323.15°)
OKLaboklab(32.47% 0.105 -0.084)
OKLCHoklch(32.47% 0.134 321.3)
XYZxyz(5.5102, 2.8929, 10.3913)
Luminance0.0289 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51105C #1B5C10
analogous
#2B105C #51105C #5C1041
triadic
#51105C #5C5110 #105C51
tetradic
#51105C #5C2B10 #1B5C10 #10415C
square
#51105C #5C2B10 #1B5C10 #10415C
split-complementary
#51105C #415C10 #105C2B
monochromatic
#17051A #230728 #51105C #7F1990 #AD22C4

Accessibility & contrast

On white

13.30
#51105C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#51105C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51105C
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51105C#FFFFFF#000000##FFFFFF
##51105C1.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5E
Deuteranopia (green-blind)
#1A325A
Tritanopia (blue-blind)
#522036
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #51105c;
/* rgb */ color: rgb(81, 16, 92);
/* oklch */ color: oklch(32.5% 0.134 321.3);
Tailwind
colors: {
  custom: {
    50: '#85578b',
    500: '#51105c',
    950: '#000000',
  },
}
SCSS
$custom: #51105c;
$custom-light: #85578b;
$custom-dark: #000000;
JSON
{
  "hex": "#51105c",
  "rgb": {
    "r": 81,
    "g": 16,
    "b": 92
  },
  "hsl": {
    "h": 291.316,
    "s": 70.37,
    "l": 21.176
  },
  "oklch": {
    "l": 0.3247,
    "c": 0.13447,
    "h": 321.3
  },
  "luminance": 0.02893
}

Semantic roles & 50–950 ramp

primary
#51105C
secondary
#419533
accent
#ED3B54
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #51105C

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

Preview Lab → · Contrast checker → · Palette generator →

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