#51145C#51145C

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

Color values

HEX#51145C
RGBrgb(81, 20, 92)
HSLhsl(291, 64%, 22%)
HSVhsv(291, 78%, 36%)
CMYKcmyk(12%, 78.3%, 0%, 63.9%)
CIE-LABlab(20.13, 38.52, -29.16)
CIE-LCHlch(20.13, 48.31, 322.87°)
OKLaboklab(32.84% 0.101 -0.0816)
OKLCHoklch(32.84% 0.13 321)
XYZxyz(5.5750, 3.0226, 10.4129)
Luminance0.0302 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51145C #1F5C14
analogous
#2D145C #51145C #5C1443
triadic
#51145C #5C5114 #145C51
tetradic
#51145C #5C2D14 #1F5C14 #14435C
square
#51145C #5C2D14 #1F5C14 #14435C
split-complementary
#51145C #435C14 #145C2D
monochromatic
#160519 #25092A #51145C #7D1F8E #AA2AC1

Accessibility & contrast

On white

13.09
#51145C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51145C
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51145C#FFFFFF#000000##FFFFFF
##51145C1.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5E
Deuteranopia (green-blind)
#1C335A
Tritanopia (blue-blind)
#522237
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #51145c;
/* rgb */ color: rgb(81, 20, 92);
/* oklch */ color: oklch(32.8% 0.130 321.0);
Tailwind
colors: {
  custom: {
    50: '#85598a',
    500: '#51145c',
    950: '#000000',
  },
}
SCSS
$custom: #51145c;
$custom-light: #85598a;
$custom-dark: #000000;
JSON
{
  "hex": "#51145c",
  "rgb": {
    "r": 81,
    "g": 20,
    "b": 92
  },
  "hsl": {
    "h": 290.833,
    "s": 64.286,
    "l": 21.961
  },
  "oklch": {
    "l": 0.32842,
    "c": 0.12982,
    "h": 321
  },
  "luminance": 0.03022
}

Semantic roles & 50–950 ramp

primary
#51145C
secondary
#469438
accent
#E7415A
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #51145C

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

Preview Lab → · Contrast checker → · Palette generator →

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