#51156C#51156C

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

Color values

HEX#51156C
RGBrgb(81, 21, 108)
HSLhsl(281, 67%, 25%)
HSVhsv(281, 81%, 42%)
CMYKcmyk(25%, 80.6%, 0%, 57.6%)
CIE-LABlab(21.46, 41.59, -37.54)
CIE-LCHlch(21.46, 56.03, 317.93°)
OKLaboklab(34.16% 0.0977 -0.1062)
OKLCHoklch(34.16% 0.144 312.6)
XYZxyz(6.3678, 3.3686, 14.4992)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51156C #306C15
analogous
#25156C #51156C #6C155C
triadic
#51156C #6C5115 #156C51
tetradic
#51156C #6C2515 #306C15 #155C6C
square
#51156C #6C2515 #306C15 #155C6C
split-complementary
#51156C #5C6C15 #156C25
monochromatic
#13051A #2B0B39 #51156C #771F9F #9E29D2

Accessibility & contrast

On white

12.55
#51156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51156C
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51156C#FFFFFF#000000##FFFFFF
##51156C1.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316E
Deuteranopia (green-blind)
#08356A
Tritanopia (blue-blind)
#4E2A40
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #51156c;
/* rgb */ color: rgb(81, 21, 108);
/* oklch */ color: oklch(34.2% 0.144 312.6);
Tailwind
colors: {
  custom: {
    50: '#855a97',
    500: '#51156c',
    950: '#000000',
  },
}
SCSS
$custom: #51156c;
$custom-light: #855a97;
$custom-dark: #000000;
JSON
{
  "hex": "#51156c",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 281.379,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34162,
    "c": 0.14428,
    "h": 312.6
  },
  "luminance": 0.03368
}

Semantic roles & 50–950 ramp

primary
#51156C
secondary
#5BA33A
accent
#EA3D73
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #51156C

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

Preview Lab → · Contrast checker → · Palette generator →

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