#51219D#51219D

#51219D is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.183 H 293.8°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#51219D
RGBrgb(81, 33, 157)
HSLhsl(263, 65%, 37%)
HSVhsv(263, 79%, 62%)
CMYKcmyk(48.4%, 79%, 0%, 38.4%)
CIE-LABlab(27.49, 48.74, -58.51)
CIE-LCHlch(27.49, 76.15, 309.79°)
OKLaboklab(39.71% 0.0741 -0.1679)
OKLCHoklch(39.71% 0.183 293.8)
XYZxyz(10.0213, 5.2710, 32.3812)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51219D #6D9D21
analogous
#212F9D #51219D #8F219D
triadic
#51219D #9D5121 #219D51
tetradic
#51219D #9D212F #6D9D21 #219D8F
square
#51219D #9D212F #6D9D21 #219D8F
split-complementary
#51219D #9D8F21 #2F9D21
monochromatic
#1D0C38 #37166A #51219D #6B2CD0 #8E5CDD

Accessibility & contrast

On white

10.22
#51219D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51219D
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51219D#FFFFFF#000000##FFFFFF
##51219D1.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A0
Deuteranopia (green-blind)
#003F9B
Tritanopia (blue-blind)
#3A445F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #51219d;
/* rgb */ color: rgb(81, 33, 157);
/* oklch */ color: oklch(39.7% 0.183 293.8);
Tailwind
colors: {
  custom: {
    50: '#8a62bb',
    500: '#51219d',
    950: '#000000',
  },
}
SCSS
$custom: #51219d;
$custom-light: #8a62bb;
$custom-dark: #000000;
JSON
{
  "hex": "#51219d",
  "rgb": {
    "r": 81,
    "g": 33,
    "b": 157
  },
  "hsl": {
    "h": 263.226,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.3971,
    "c": 0.18349,
    "h": 293.8
  },
  "luminance": 0.05271
}

Semantic roles & 50–950 ramp

primary
#51219D
secondary
#99C159
accent
#E840A7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0512
muted
#7D7A81

Preview Lab

Preview with #51219D

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

Preview Lab → · Contrast checker → · Palette generator →

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