#51278A#51278A

#51278A is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.155 H 298.2°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#51278A
RGBrgb(81, 39, 138)
HSLhsl(265, 56%, 35%)
HSVhsv(265, 72%, 54%)
CMYKcmyk(41.3%, 71.7%, 0%, 45.9%)
CIE-LABlab(26.83, 40.75, -47.88)
CIE-LCHlch(26.83, 62.87, 310.40°)
OKLaboklab(38.73% 0.0732 -0.1367)
OKLCHoklch(38.73% 0.155 298.2)
XYZxyz(8.7051, 5.0352, 24.5531)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51278A #608A27
analogous
#272E8A #51278A #83278A
triadic
#51278A #8A5127 #278A51
tetradic
#51278A #8A272E #608A27 #278A83
square
#51278A #8A272E #608A27 #278A83
split-complementary
#51278A #8A8327 #2E8A27
monochromatic
#190C2B #351A5A #51278A #6D34BA #8D5BD1

Accessibility & contrast

On white

10.46
#51278A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#51278A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51278A
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51278A#FFFFFF#000000##FFFFFF
##51278A1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#433F55
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #51278a;
/* rgb */ color: rgb(81, 39, 138);
/* oklch */ color: oklch(38.7% 0.155 298.2);
Tailwind
colors: {
  custom: {
    50: '#8765ad',
    500: '#51278a',
    950: '#000000',
  },
}
SCSS
$custom: #51278a;
$custom-light: #8765ad;
$custom-dark: #000000;
JSON
{
  "hex": "#51278a",
  "rgb": {
    "r": 81,
    "g": 39,
    "b": 138
  },
  "hsl": {
    "h": 265.455,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38729,
    "c": 0.1551,
    "h": 298.2
  },
  "luminance": 0.05035
}

Semantic roles & 50–950 ramp

primary
#51278A
secondary
#8EB657
accent
#DF499F
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #51278A

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

Preview Lab → · Contrast checker → · Palette generator →

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