#51278E#51278E

#51278E is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.1% C 0.160 H 297.0°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#51278E
RGBrgb(81, 39, 142)
HSLhsl(264, 57%, 35%)
HSVhsv(264, 73%, 56%)
CMYKcmyk(43%, 72.5%, 0%, 44.3%)
CIE-LABlab(27.17, 41.83, -49.82)
CIE-LCHlch(27.17, 65.06, 310.02°)
OKLaboklab(39.07% 0.0725 -0.1424)
OKLCHoklch(39.07% 0.16 297)
XYZxyz(9.0001, 5.1532, 26.1064)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51278E #648E27
analogous
#27308E #51278E #84278E
triadic
#51278E #8E5127 #278E51
tetradic
#51278E #8E2730 #648E27 #278E84
square
#51278E #8E2730 #648E27 #278E84
split-complementary
#51278E #8E8427 #308E27
monochromatic
#1A0D2E #361A5E #51278E #6C34BE #8D5DD2

Accessibility & contrast

On white

10.34
#51278E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#51278E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51278E
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51278E#FFFFFF#000000##FFFFFF
##51278E1.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#414158
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #51278e;
/* rgb */ color: rgb(81, 39, 142);
/* oklch */ color: oklch(39.1% 0.160 297.0);
Tailwind
colors: {
  custom: {
    50: '#8865b0',
    500: '#51278e',
    950: '#000000',
  },
}
SCSS
$custom: #51278e;
$custom-light: #8865b0;
$custom-dark: #000000;
JSON
{
  "hex": "#51278e",
  "rgb": {
    "r": 81,
    "g": 39,
    "b": 142
  },
  "hsl": {
    "h": 264.466,
    "s": 56.906,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39069,
    "c": 0.15981,
    "h": 297
  },
  "luminance": 0.05153
}

Semantic roles & 50–950 ramp

primary
#51278E
secondary
#91B859
accent
#E048A2
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #51278E

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

Preview Lab → · Contrast checker → · Palette generator →

#51278E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva