#51278C#51278C

#51278C is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.157 H 297.6°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#51278C
RGBrgb(81, 39, 140)
HSLhsl(265, 56%, 35%)
HSVhsv(265, 72%, 55%)
CMYKcmyk(42.1%, 72.1%, 0%, 45.1%)
CIE-LABlab(27.00, 41.29, -48.85)
CIE-LCHlch(27.00, 63.97, 310.20°)
OKLaboklab(38.9% 0.0729 -0.1396)
OKLCHoklch(38.9% 0.157 297.6)
XYZxyz(8.8513, 5.0937, 25.3227)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51278C #628C27
analogous
#27308C #51278C #83278C
triadic
#51278C #8C5127 #278C51
tetradic
#51278C #8C2730 #628C27 #278C83
square
#51278C #8C2730 #628C27 #278C83
split-complementary
#51278C #8C8327 #308C27
monochromatic
#1A0C2C #351A5C #51278C #6D34BC #8D5CD2

Accessibility & contrast

On white

10.40
#51278C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#51278C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51278C
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51278C#FFFFFF#000000##FFFFFF
##51278C1.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408F
Deuteranopia (green-blind)
#003F8A
Tritanopia (blue-blind)
#424056
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #51278c;
/* rgb */ color: rgb(81, 39, 140);
/* oklch */ color: oklch(38.9% 0.157 297.6);
Tailwind
colors: {
  custom: {
    50: '#8765ae',
    500: '#51278c',
    950: '#000000',
  },
}
SCSS
$custom: #51278c;
$custom-light: #8765ae;
$custom-dark: #000000;
JSON
{
  "hex": "#51278c",
  "rgb": {
    "r": 81,
    "g": 39,
    "b": 140
  },
  "hsl": {
    "h": 264.95,
    "s": 56.425,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38898,
    "c": 0.15745,
    "h": 297.6
  },
  "luminance": 0.05094
}

Semantic roles & 50–950 ramp

primary
#51278C
secondary
#8FB758
accent
#E048A1
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #51278C

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

Preview Lab → · Contrast checker → · Palette generator →

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