#51219F#51219F

#51219F is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.9% C 0.186 H 293.3°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#51219F
RGBrgb(81, 33, 159)
HSLhsl(263, 66%, 38%)
HSVhsv(263, 79%, 62%)
CMYKcmyk(49.1%, 79.2%, 0%, 37.6%)
CIE-LABlab(27.68, 49.27, -59.42)
CIE-LCHlch(27.68, 77.19, 309.67°)
OKLaboklab(39.9% 0.0735 -0.1705)
OKLCHoklch(39.9% 0.186 293.3)
XYZxyz(10.1935, 5.3399, 33.2878)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51219F #6F9F21
analogous
#21309F #51219F #90219F
triadic
#51219F #9F5121 #219F51
tetradic
#51219F #9F2130 #6F9F21 #219F90
square
#51219F #9F2130 #6F9F21 #219F90
split-complementary
#51219F #9F9021 #309F21
monochromatic
#1D0C3A #37166C #51219F #6B2CD2 #8E5DDD

Accessibility & contrast

On white

10.15
#51219F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#51219F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51219F
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51219F#FFFFFF#000000##FFFFFF
##51219F1.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#003F9D
Tritanopia (blue-blind)
#384560
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #51219f;
/* rgb */ color: rgb(81, 33, 159);
/* oklch */ color: oklch(39.9% 0.186 293.3);
Tailwind
colors: {
  custom: {
    50: '#8a62bc',
    500: '#51219f',
    950: '#000000',
  },
}
SCSS
$custom: #51219f;
$custom-light: #8a62bc;
$custom-dark: #000000;
JSON
{
  "hex": "#51219f",
  "rgb": {
    "r": 81,
    "g": 33,
    "b": 159
  },
  "hsl": {
    "h": 262.857,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39899,
    "c": 0.18569,
    "h": 293.3
  },
  "luminance": 0.0534
}

Semantic roles & 50–950 ramp

primary
#51219F
secondary
#9AC25A
accent
#E93FA8
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #51219F

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

Preview Lab → · Contrast checker → · Palette generator →

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