#51145B#51145B

#51145B is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.8% C 0.129 H 321.6°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#51145B
RGBrgb(81, 20, 91)
HSLhsl(292, 64%, 22%)
HSVhsv(292, 78%, 36%)
CMYKcmyk(11%, 78%, 0%, 64.3%)
CIE-LABlab(20.07, 38.31, -28.60)
CIE-LCHlch(20.07, 47.81, 323.25°)
OKLaboklab(32.77% 0.101 -0.08)
OKLCHoklch(32.77% 0.129 321.6)
XYZxyz(5.5316, 3.0053, 10.1842)
Luminance0.0301 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51145B #1E5B14
analogous
#2E145B #51145B #5B1442
triadic
#51145B #5B5114 #145B51
tetradic
#51145B #5B2E14 #1E5B14 #14425B
square
#51145B #5B2E14 #1E5B14 #14425B
split-complementary
#51145B #425B14 #145B2E
monochromatic
#160619 #240929 #51145B #7E1F8D #AA2ABF

Accessibility & contrast

On white

13.12
#51145B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#51145B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51145B
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51145B#FFFFFF#000000##FFFFFF
##51145B1.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5D
Deuteranopia (green-blind)
#1D3359
Tritanopia (blue-blind)
#522136
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #51145b;
/* rgb */ color: rgb(81, 20, 91);
/* oklch */ color: oklch(32.8% 0.129 321.6);
Tailwind
colors: {
  custom: {
    50: '#85598a',
    500: '#51145b',
    950: '#000000',
  },
}
SCSS
$custom: #51145b;
$custom-light: #85598a;
$custom-dark: #000000;
JSON
{
  "hex": "#51145b",
  "rgb": {
    "r": 81,
    "g": 20,
    "b": 91
  },
  "hsl": {
    "h": 291.549,
    "s": 63.964,
    "l": 21.765
  },
  "oklch": {
    "l": 0.32771,
    "c": 0.12886,
    "h": 321.6
  },
  "luminance": 0.03005
}

Semantic roles & 50–950 ramp

primary
#51145B
secondary
#459338
accent
#E74158
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #51145B

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

Preview Lab → · Contrast checker → · Palette generator →

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