#51146A#51146A

#51146A is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.9% C 0.143 H 313.7°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#51146A
RGBrgb(81, 20, 106)
HSLhsl(283, 68%, 25%)
HSVhsv(283, 81%, 42%)
CMYKcmyk(23.6%, 81.1%, 0%, 58.4%)
CIE-LABlab(21.17, 41.53, -36.71)
CIE-LCHlch(21.17, 55.43, 318.53°)
OKLaboklab(33.91% 0.099 -0.1038)
OKLCHoklch(33.91% 0.143 313.7)
XYZxyz(6.2446, 3.2905, 13.9391)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51146A #2D6A14
analogous
#26146A #51146A #6A1458
triadic
#51146A #6A5114 #146A51
tetradic
#51146A #6A2614 #2D6A14 #14586A
square
#51146A #6A2614 #2D6A14 #14586A
split-complementary
#51146A #586A14 #146A26
monochromatic
#14051A #2A0A37 #51146A #781E9D #A027D1

Accessibility & contrast

On white

12.67
#51146A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#51146A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51146A
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51146A#FFFFFF#000000##FFFFFF
##51146A1.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #51146a;
/* rgb */ color: rgb(81, 20, 106);
/* oklch */ color: oklch(33.9% 0.143 313.7);
Tailwind
colors: {
  custom: {
    50: '#855995',
    500: '#51146a',
    950: '#000000',
  },
}
SCSS
$custom: #51146a;
$custom-light: #855995;
$custom-dark: #000000;
JSON
{
  "hex": "#51146a",
  "rgb": {
    "r": 81,
    "g": 20,
    "b": 106
  },
  "hsl": {
    "h": 282.558,
    "s": 68.254,
    "l": 24.706
  },
  "oklch": {
    "l": 0.33907,
    "c": 0.14341,
    "h": 313.7
  },
  "luminance": 0.0329
}

Semantic roles & 50–950 ramp

primary
#51146A
secondary
#57A139
accent
#EB3D6F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #51146A

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

Preview Lab → · Contrast checker → · Palette generator →

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