#51115B#51115B

#51115B is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.5% C 0.132 H 321.8°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#51115B
RGBrgb(81, 17, 91)
HSLhsl(292, 69%, 21%)
HSVhsv(292, 81%, 36%)
CMYKcmyk(11%, 81.3%, 0%, 64.3%)
CIE-LABlab(19.66, 39.46, -29.25)
CIE-LCHlch(19.66, 49.12, 323.45°)
OKLaboklab(32.49% 0.1041 -0.0819)
OKLCHoklch(32.49% 0.132 321.8)
XYZxyz(5.4819, 2.9059, 10.1676)
Luminance0.0291 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51115B #1B5B11
analogous
#2C115B #51115B #5B1140
triadic
#51115B #5B5111 #115B51
tetradic
#51115B #5B2C11 #1B5B11 #11405B
square
#51115B #5B2C11 #1B5B11 #11405B
split-complementary
#51115B #405B11 #115B2C
monochromatic
#17051A #230727 #51115B #7F1B8F #AD24C2

Accessibility & contrast

On white

13.28
#51115B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51115B
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51115B#FFFFFF#000000##FFFFFF
##51115B1.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5D
Deuteranopia (green-blind)
#1B3259
Tritanopia (blue-blind)
#522035
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #51115b;
/* rgb */ color: rgb(81, 17, 91);
/* oklch */ color: oklch(32.5% 0.132 321.8);
Tailwind
colors: {
  custom: {
    50: '#85578a',
    500: '#51115b',
    950: '#000000',
  },
}
SCSS
$custom: #51115b;
$custom-light: #85578a;
$custom-dark: #000000;
JSON
{
  "hex": "#51115b",
  "rgb": {
    "r": 81,
    "g": 17,
    "b": 91
  },
  "hsl": {
    "h": 291.892,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32485,
    "c": 0.13245,
    "h": 321.8
  },
  "luminance": 0.02906
}

Semantic roles & 50–950 ramp

primary
#51115B
secondary
#419434
accent
#EB3C54
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #51115B

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

Preview Lab → · Contrast checker → · Palette generator →

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