#51278B#51278B

#51278B is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.8% C 0.156 H 297.9°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#51278B
RGBrgb(81, 39, 139)
HSLhsl(265, 56%, 35%)
HSVhsv(265, 72%, 55%)
CMYKcmyk(41.7%, 71.9%, 0%, 45.5%)
CIE-LABlab(26.92, 41.02, -48.37)
CIE-LCHlch(26.92, 63.42, 310.30°)
OKLaboklab(38.81% 0.0731 -0.1381)
OKLCHoklch(38.81% 0.156 297.9)
XYZxyz(8.7779, 5.0643, 24.9361)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51278B #618B27
analogous
#272F8B #51278B #83278B
triadic
#51278B #8B5127 #278B51
tetradic
#51278B #8B272F #618B27 #278B83
square
#51278B #8B272F #618B27 #278B83
split-complementary
#51278B #8B8327 #2F8B27
monochromatic
#190C2B #351A5B #51278B #6D34BB #8D5BD1

Accessibility & contrast

On white

10.43
#51278B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51278B
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51278B#FFFFFF#000000##FFFFFF
##51278B1.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#434056
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #51278b;
/* rgb */ color: rgb(81, 39, 139);
/* oklch */ color: oklch(38.8% 0.156 297.9);
Tailwind
colors: {
  custom: {
    50: '#8765ae',
    500: '#51278b',
    950: '#000000',
  },
}
SCSS
$custom: #51278b;
$custom-light: #8765ae;
$custom-dark: #000000;
JSON
{
  "hex": "#51278b",
  "rgb": {
    "r": 81,
    "g": 39,
    "b": 139
  },
  "hsl": {
    "h": 265.2,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38813,
    "c": 0.15627,
    "h": 297.9
  },
  "luminance": 0.05064
}

Semantic roles & 50–950 ramp

primary
#51278B
secondary
#8EB658
accent
#DF48A0
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #51278B

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

Preview Lab → · Contrast checker → · Palette generator →

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