#51146D#51146D

#51146D is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.1% C 0.146 H 312.2°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#51146D
RGBrgb(81, 20, 109)
HSLhsl(281, 69%, 25%)
HSVhsv(281, 82%, 43%)
CMYKcmyk(25.7%, 81.7%, 0%, 57.3%)
CIE-LABlab(21.41, 42.20, -38.28)
CIE-LCHlch(21.41, 56.98, 317.79°)
OKLaboklab(34.15% 0.0984 -0.1084)
OKLCHoklch(34.15% 0.146 312.2)
XYZxyz(6.4033, 3.3540, 14.7751)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51146D #306D14
analogous
#25146D #51146D #6D145C
triadic
#51146D #6D5114 #146D51
tetradic
#51146D #6D2514 #306D14 #145C6D
square
#51146D #6D2514 #306D14 #145C6D
split-complementary
#51146D #5C6D14 #146D25
monochromatic
#13051A #2B0B39 #51146D #771DA1 #9E27D4

Accessibility & contrast

On white

12.57
#51146D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#51146D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51146D
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51146D#FFFFFF#000000##FFFFFF
##51146D1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306F
Deuteranopia (green-blind)
#05356B
Tritanopia (blue-blind)
#4E2940
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #51146d;
/* rgb */ color: rgb(81, 20, 109);
/* oklch */ color: oklch(34.1% 0.146 312.2);
Tailwind
colors: {
  custom: {
    50: '#865a97',
    500: '#51146d',
    950: '#000000',
  },
}
SCSS
$custom: #51146d;
$custom-light: #865a97;
$custom-dark: #000000;
JSON
{
  "hex": "#51146d",
  "rgb": {
    "r": 81,
    "g": 20,
    "b": 109
  },
  "hsl": {
    "h": 281.124,
    "s": 68.992,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34149,
    "c": 0.14637,
    "h": 312.2
  },
  "luminance": 0.03354
}

Semantic roles & 50–950 ramp

primary
#51146D
secondary
#5BA439
accent
#EC3C73
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #51146D

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

Preview Lab → · Contrast checker → · Palette generator →

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