#51145E#51145E

#51145E is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.0% C 0.132 H 319.9°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#51145E
RGBrgb(81, 20, 94)
HSLhsl(289, 65%, 22%)
HSVhsv(289, 79%, 37%)
CMYKcmyk(13.8%, 78.7%, 0%, 63.1%)
CIE-LABlab(20.28, 38.94, -30.26)
CIE-LCHlch(20.28, 49.31, 322.14°)
OKLaboklab(32.99% 0.1008 -0.0848)
OKLCHoklch(32.99% 0.132 319.9)
XYZxyz(5.6636, 3.0581, 10.8794)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51145E #215E14
analogous
#2C145E #51145E #5E1446
triadic
#51145E #5E5114 #145E51
tetradic
#51145E #5E2C14 #215E14 #14465E
square
#51145E #5E2C14 #215E14 #14465E
split-complementary
#51145E #465E14 #145E2C
monochromatic
#160519 #26092C #51145E #7C1F90 #A829C3

Accessibility & contrast

On white

13.03
#51145E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#51145E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51145E
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51145E#FFFFFF#000000##FFFFFF
##51145E1.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D60
Deuteranopia (green-blind)
#1B335C
Tritanopia (blue-blind)
#512338
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #51145e;
/* rgb */ color: rgb(81, 20, 94);
/* oklch */ color: oklch(33.0% 0.132 319.9);
Tailwind
colors: {
  custom: {
    50: '#85598c',
    500: '#51145e',
    950: '#000000',
  },
}
SCSS
$custom: #51145e;
$custom-light: #85598c;
$custom-dark: #000000;
JSON
{
  "hex": "#51145e",
  "rgb": {
    "r": 81,
    "g": 20,
    "b": 94
  },
  "hsl": {
    "h": 289.459,
    "s": 64.912,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32987,
    "c": 0.13174,
    "h": 319.9
  },
  "luminance": 0.03058
}

Semantic roles & 50–950 ramp

primary
#51145E
secondary
#499638
accent
#E8405D
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #51145E

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

Preview Lab → · Contrast checker → · Palette generator →

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