#51146F#51146F

#51146F is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.3% C 0.148 H 311.3°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#51146F
RGBrgb(81, 20, 111)
HSLhsl(280, 69%, 26%)
HSVhsv(280, 82%, 44%)
CMYKcmyk(27%, 82%, 0%, 56.5%)
CIE-LABlab(21.57, 42.66, -39.31)
CIE-LCHlch(21.57, 58.01, 317.34°)
OKLaboklab(34.31% 0.098 -0.1114)
OKLCHoklch(34.31% 0.148 311.3)
XYZxyz(6.5122, 3.3975, 15.3486)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51146F #326F14
analogous
#23146F #51146F #6F145F
triadic
#51146F #6F5114 #146F51
tetradic
#51146F #6F2314 #326F14 #145F6F
square
#51146F #6F2314 #326F14 #145F6F
split-complementary
#51146F #5F6F14 #146F23
monochromatic
#13051A #2B0B3B #51146F #771DA3 #9D27D7

Accessibility & contrast

On white

12.50
#51146F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#51146F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51146F
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51146F#FFFFFF#000000##FFFFFF
##51146F1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#00356D
Tritanopia (blue-blind)
#4D2A41
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #51146f;
/* rgb */ color: rgb(81, 20, 111);
/* oklch */ color: oklch(34.3% 0.148 311.3);
Tailwind
colors: {
  custom: {
    50: '#865a99',
    500: '#51146f',
    950: '#000000',
  },
}
SCSS
$custom: #51146f;
$custom-light: #865a99;
$custom-dark: #000000;
JSON
{
  "hex": "#51146f",
  "rgb": {
    "r": 81,
    "g": 20,
    "b": 111
  },
  "hsl": {
    "h": 280.22,
    "s": 69.466,
    "l": 25.686
  },
  "oklch": {
    "l": 0.34313,
    "c": 0.14834,
    "h": 311.3
  },
  "luminance": 0.03397
}

Semantic roles & 50–950 ramp

primary
#51146F
secondary
#5DA639
accent
#EC3C76
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #51146F

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

Preview Lab → · Contrast checker → · Palette generator →

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