#51146B#51146B

#51146B is a dark, vivid purple. Relative luminance 0.033; OKLCH L 34.0% C 0.144 H 313.2°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#51146B
RGBrgb(81, 20, 107)
HSLhsl(282, 69%, 25%)
HSVhsv(282, 81%, 42%)
CMYKcmyk(24.3%, 81.3%, 0%, 58%)
CIE-LABlab(21.25, 41.76, -37.23)
CIE-LCHlch(21.25, 55.95, 318.28°)
OKLaboklab(33.99% 0.0988 -0.1053)
OKLCHoklch(33.99% 0.144 313.2)
XYZxyz(6.2969, 3.3114, 14.2145)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51146B #2E6B14
analogous
#26146B #51146B #6B145A
triadic
#51146B #6B5114 #146B51
tetradic
#51146B #6B2614 #2E6B14 #145A6B
square
#51146B #6B2614 #2E6B14 #145A6B
split-complementary
#51146B #5A6B14 #146B26
monochromatic
#14051A #2A0A37 #51146B #781E9F #9F27D2

Accessibility & contrast

On white

12.63
#51146B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51146B
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51146B#FFFFFF#000000##FFFFFF
##51146B1.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306D
Deuteranopia (green-blind)
#093469
Tritanopia (blue-blind)
#4E293F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #51146b;
/* rgb */ color: rgb(81, 20, 107);
/* oklch */ color: oklch(34.0% 0.144 313.2);
Tailwind
colors: {
  custom: {
    50: '#855a96',
    500: '#51146b',
    950: '#000000',
  },
}
SCSS
$custom: #51146b;
$custom-light: #855a96;
$custom-dark: #000000;
JSON
{
  "hex": "#51146b",
  "rgb": {
    "r": 81,
    "g": 20,
    "b": 107
  },
  "hsl": {
    "h": 282.069,
    "s": 68.504,
    "l": 24.902
  },
  "oklch": {
    "l": 0.33987,
    "c": 0.1444,
    "h": 313.2
  },
  "luminance": 0.03311
}

Semantic roles & 50–950 ramp

primary
#51146B
secondary
#58A239
accent
#EB3C71
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #51146B

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

Preview Lab → · Contrast checker → · Palette generator →

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