#51115C#51115C

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

Color values

HEX#51115C
RGBrgb(81, 17, 92)
HSLhsl(291, 69%, 21%)
HSVhsv(291, 82%, 36%)
CMYKcmyk(12%, 81.5%, 0%, 63.9%)
CIE-LABlab(19.73, 39.67, -29.80)
CIE-LCHlch(19.73, 49.61, 323.08°)
OKLaboklab(32.56% 0.104 -0.0835)
OKLCHoklch(32.56% 0.133 321.3)
XYZxyz(5.5253, 2.9232, 10.3963)
Luminance0.0292 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51115C #1C5C11
analogous
#2C115C #51115C #5C1142
triadic
#51115C #5C5111 #115C51
tetradic
#51115C #5C2C11 #1C5C11 #11425C
square
#51115C #5C2C11 #1C5C11 #11425C
split-complementary
#51115C #425C11 #115C2C
monochromatic
#17051A #240728 #51115C #7E1B90 #AC24C3

Accessibility & contrast

On white

13.25
#51115C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51115C
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51115C#FFFFFF#000000##FFFFFF
##51115C1.0013.251.5813.25
#FFFFFF13.251.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5E
Deuteranopia (green-blind)
#1B325A
Tritanopia (blue-blind)
#522036
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #51115c;
/* rgb */ color: rgb(81, 17, 92);
/* oklch */ color: oklch(32.6% 0.133 321.3);
Tailwind
colors: {
  custom: {
    50: '#85578a',
    500: '#51115c',
    950: '#000000',
  },
}
SCSS
$custom: #51115c;
$custom-light: #85578a;
$custom-dark: #000000;
JSON
{
  "hex": "#51115c",
  "rgb": {
    "r": 81,
    "g": 17,
    "b": 92
  },
  "hsl": {
    "h": 291.2,
    "s": 68.807,
    "l": 21.373
  },
  "oklch": {
    "l": 0.32558,
    "c": 0.13338,
    "h": 321.3
  },
  "luminance": 0.02923
}

Semantic roles & 50–950 ramp

primary
#51115C
secondary
#429534
accent
#EC3C56
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #51115C

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

Preview Lab → · Contrast checker → · Palette generator →

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