#51156D#51156D

#51156D is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.2% C 0.145 H 312.1°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#51156D
RGBrgb(81, 21, 109)
HSLhsl(281, 68%, 25%)
HSVhsv(281, 81%, 43%)
CMYKcmyk(25.7%, 80.7%, 0%, 57.3%)
CIE-LABlab(21.54, 41.82, -38.06)
CIE-LCHlch(21.54, 56.55, 317.69°)
OKLaboklab(34.24% 0.0975 -0.1077)
OKLCHoklch(34.24% 0.145 312.1)
XYZxyz(6.4213, 3.3900, 14.7811)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51156D #316D15
analogous
#25156D #51156D #6D155D
triadic
#51156D #6D5115 #156D51
tetradic
#51156D #6D2515 #316D15 #155D6D
square
#51156D #6D2515 #316D15 #155D6D
split-complementary
#51156D #5D6D15 #156D25
monochromatic
#13051A #2B0B3A #51156D #771FA0 #9D29D4

Accessibility & contrast

On white

12.51
#51156D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#51156D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51156D
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51156D#FFFFFF#000000##FFFFFF
##51156D1.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316F
Deuteranopia (green-blind)
#06356B
Tritanopia (blue-blind)
#4E2A40
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #51156d;
/* rgb */ color: rgb(81, 21, 109);
/* oklch */ color: oklch(34.2% 0.145 312.1);
Tailwind
colors: {
  custom: {
    50: '#865a97',
    500: '#51156d',
    950: '#000000',
  },
}
SCSS
$custom: #51156d;
$custom-light: #865a97;
$custom-dark: #000000;
JSON
{
  "hex": "#51156d",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 109
  },
  "hsl": {
    "h": 280.909,
    "s": 67.692,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34243,
    "c": 0.14527,
    "h": 312.1
  },
  "luminance": 0.0339
}

Semantic roles & 50–950 ramp

primary
#51156D
secondary
#5CA33A
accent
#EB3D74
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #51156D

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

Preview Lab → · Contrast checker → · Palette generator →

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