#51156A#51156A

#51156A is a dark, vivid purple. Relative luminance 0.033; OKLCH L 34.0% C 0.142 H 313.6°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#51156A
RGBrgb(81, 21, 106)
HSLhsl(282, 67%, 25%)
HSVhsv(282, 80%, 42%)
CMYKcmyk(23.6%, 80.2%, 0%, 58.4%)
CIE-LABlab(21.31, 41.14, -36.49)
CIE-LCHlch(21.31, 55.00, 318.43°)
OKLaboklab(34% 0.098 -0.1031)
OKLCHoklch(34% 0.142 313.6)
XYZxyz(6.2626, 3.3265, 13.9451)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51156A #2E6A15
analogous
#27156A #51156A #6A1559
triadic
#51156A #6A5115 #156A51
tetradic
#51156A #6A2715 #2E6A15 #15596A
square
#51156A #6A2715 #2E6A15 #15596A
split-complementary
#51156A #596A15 #156A27
monochromatic
#14051A #2A0B37 #51156A #781F9D #9F29D0

Accessibility & contrast

On white

12.61
#51156A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#51156A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51156A
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51156A#FFFFFF#000000##FFFFFF
##51156A1.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306C
Deuteranopia (green-blind)
#0C3468
Tritanopia (blue-blind)
#4E293F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #51156a;
/* rgb */ color: rgb(81, 21, 106);
/* oklch */ color: oklch(34.0% 0.142 313.6);
Tailwind
colors: {
  custom: {
    50: '#855a95',
    500: '#51156a',
    950: '#000000',
  },
}
SCSS
$custom: #51156a;
$custom-light: #855a95;
$custom-dark: #000000;
JSON
{
  "hex": "#51156a",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 106
  },
  "hsl": {
    "h": 282.353,
    "s": 66.929,
    "l": 24.902
  },
  "oklch": {
    "l": 0.34002,
    "c": 0.14229,
    "h": 313.6
  },
  "luminance": 0.03326
}

Semantic roles & 50–950 ramp

primary
#51156A
secondary
#58A13A
accent
#EA3E71
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #51156A

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

Preview Lab → · Contrast checker → · Palette generator →

#51156A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva