#51219C#51219C

#51219C is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.182 H 294.1°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#51219C
RGBrgb(81, 33, 156)
HSLhsl(263, 65%, 37%)
HSVhsv(263, 79%, 61%)
CMYKcmyk(48.1%, 78.8%, 0%, 38.8%)
CIE-LABlab(27.40, 48.47, -58.05)
CIE-LCHlch(27.40, 75.63, 309.86°)
OKLaboklab(39.62% 0.0744 -0.1665)
OKLCHoklch(39.62% 0.182 294.1)
XYZxyz(9.9363, 5.2370, 31.9334)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51219C #6C9C21
analogous
#212E9C #51219C #8F219C
triadic
#51219C #9C5121 #219C51
tetradic
#51219C #9C212E #6C9C21 #219C8F
square
#51219C #9C212E #6C9C21 #219C8F
split-complementary
#51219C #9C8F21 #2E9C21
monochromatic
#1D0C37 #371669 #51219C #6B2CCF #8E5BDC

Accessibility & contrast

On white

10.26
#51219C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#51219C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51219C
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51219C#FFFFFF#000000##FFFFFF
##51219C1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#003F9A
Tritanopia (blue-blind)
#3A435E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #51219c;
/* rgb */ color: rgb(81, 33, 156);
/* oklch */ color: oklch(39.6% 0.182 294.1);
Tailwind
colors: {
  custom: {
    50: '#8a62ba',
    500: '#51219c',
    950: '#000000',
  },
}
SCSS
$custom: #51219c;
$custom-light: #8a62ba;
$custom-dark: #000000;
JSON
{
  "hex": "#51219c",
  "rgb": {
    "r": 81,
    "g": 33,
    "b": 156
  },
  "hsl": {
    "h": 263.415,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39616,
    "c": 0.18239,
    "h": 294.1
  },
  "luminance": 0.05237
}

Semantic roles & 50–950 ramp

primary
#51219C
secondary
#98C158
accent
#E840A6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0512
muted
#7D7A81

Preview Lab

Preview with #51219C

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

Preview Lab → · Contrast checker → · Palette generator →

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