#51219E#51219E

#51219E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.8% C 0.185 H 293.6°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#51219E
RGBrgb(81, 33, 158)
HSLhsl(263, 65%, 37%)
HSVhsv(263, 79%, 62%)
CMYKcmyk(48.7%, 79.1%, 0%, 38%)
CIE-LABlab(27.59, 49.00, -58.96)
CIE-LCHlch(27.59, 76.67, 309.73°)
OKLaboklab(39.8% 0.0738 -0.1692)
OKLCHoklch(39.8% 0.185 293.6)
XYZxyz(10.1070, 5.3053, 32.8326)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51219E #6E9E21
analogous
#21309E #51219E #90219E
triadic
#51219E #9E5121 #219E51
tetradic
#51219E #9E2130 #6E9E21 #219E90
square
#51219E #9E2130 #6E9E21 #219E90
split-complementary
#51219E #9E9021 #309E21
monochromatic
#1D0C39 #37166B #51219E #6B2CD1 #8E5CDD

Accessibility & contrast

On white

10.19
#51219E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#51219E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51219E
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51219E#FFFFFF#000000##FFFFFF
##51219E1.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A1
Deuteranopia (green-blind)
#003F9C
Tritanopia (blue-blind)
#39445F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #51219e;
/* rgb */ color: rgb(81, 33, 158);
/* oklch */ color: oklch(39.8% 0.185 293.6);
Tailwind
colors: {
  custom: {
    50: '#8a62bc',
    500: '#51219e',
    950: '#000000',
  },
}
SCSS
$custom: #51219e;
$custom-light: #8a62bc;
$custom-dark: #000000;
JSON
{
  "hex": "#51219e",
  "rgb": {
    "r": 81,
    "g": 33,
    "b": 158
  },
  "hsl": {
    "h": 263.04,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39804,
    "c": 0.18459,
    "h": 293.6
  },
  "luminance": 0.05306
}

Semantic roles & 50–950 ramp

primary
#51219E
secondary
#99C159
accent
#E83FA8
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #51219E

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

Preview Lab → · Contrast checker → · Palette generator →

#51219E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva