#51178F#51178F

#51178F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.4% C 0.178 H 299.0°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#51178F
RGBrgb(81, 23, 143)
HSLhsl(269, 72%, 33%)
HSVhsv(269, 84%, 56%)
CMYKcmyk(43.4%, 83.9%, 0%, 43.9%)
CIE-LABlab(24.78, 49.18, -54.34)
CIE-LCHlch(24.78, 73.29, 312.14°)
OKLaboklab(37.42% 0.0861 -0.1556)
OKLCHoklch(37.42% 0.178 299)
XYZxyz(8.6564, 4.3452, 26.3639)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51178F #558F17
analogous
#17198F #51178F #8D178F
triadic
#51178F #8F5117 #178F51
tetradic
#51178F #8F1719 #558F17 #178F8D
square
#51178F #8F1719 #558F17 #178F8D
split-complementary
#51178F #8F8D17 #198F17
monochromatic
#150626 #330F5A #51178F #6F1FC4 #8E40E0

Accessibility & contrast

On white

11.24
#51178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#51178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51178F
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51178F#FFFFFF#000000##FFFFFF
##51178F1.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#003A8D
Tritanopia (blue-blind)
#413A55
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #51178f;
/* rgb */ color: rgb(81, 23, 143);
/* oklch */ color: oklch(37.4% 0.178 299.0);
Tailwind
colors: {
  custom: {
    50: '#895db1',
    500: '#51178f',
    950: '#000000',
  },
}
SCSS
$custom: #51178f;
$custom-light: #895db1;
$custom-dark: #000000;
JSON
{
  "hex": "#51178f",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 269,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37423,
    "c": 0.17781,
    "h": 299
  },
  "luminance": 0.04345
}

Semantic roles & 50–950 ramp

primary
#51178F
secondary
#83C141
accent
#EF3997
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #51178F

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

Preview Lab → · Contrast checker → · Palette generator →

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