#51278F#51278F

#51278F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.2% C 0.161 H 296.7°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#51278F
RGBrgb(81, 39, 143)
HSLhsl(264, 57%, 36%)
HSVhsv(264, 73%, 56%)
CMYKcmyk(43.4%, 72.7%, 0%, 43.9%)
CIE-LABlab(27.25, 42.11, -50.31)
CIE-LCHlch(27.25, 65.60, 309.93°)
OKLaboklab(39.16% 0.0723 -0.1438)
OKLCHoklch(39.16% 0.161 296.7)
XYZxyz(9.0755, 5.1834, 26.5036)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51278F #658F27
analogous
#27318F #51278F #85278F
triadic
#51278F #8F5127 #278F51
tetradic
#51278F #8F2731 #658F27 #278F85
square
#51278F #8F2731 #658F27 #278F85
split-complementary
#51278F #8F8527 #318F27
monochromatic
#1B0D2F #361A5F #51278F #6C34BF #8D5DD3

Accessibility & contrast

On white

10.31
#51278F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#51278F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51278F
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51278F#FFFFFF#000000##FFFFFF
##51278F1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #51278f;
/* rgb */ color: rgb(81, 39, 143);
/* oklch */ color: oklch(39.2% 0.161 296.7);
Tailwind
colors: {
  custom: {
    50: '#8865b1',
    500: '#51278f',
    950: '#000000',
  },
}
SCSS
$custom: #51278f;
$custom-light: #8865b1;
$custom-dark: #000000;
JSON
{
  "hex": "#51278f",
  "rgb": {
    "r": 81,
    "g": 39,
    "b": 143
  },
  "hsl": {
    "h": 264.231,
    "s": 57.143,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39155,
    "c": 0.16097,
    "h": 296.7
  },
  "luminance": 0.05184
}

Semantic roles & 50–950 ramp

primary
#51278F
secondary
#92B85A
accent
#E047A3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #51278F

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

Preview Lab → · Contrast checker → · Palette generator →

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