#51219B#51219B

#51219B is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.5% C 0.181 H 294.3°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#51219B
RGBrgb(81, 33, 155)
HSLhsl(264, 65%, 37%)
HSVhsv(264, 79%, 61%)
CMYKcmyk(47.7%, 78.7%, 0%, 39.2%)
CIE-LABlab(27.31, 48.21, -57.59)
CIE-LCHlch(27.31, 75.11, 309.93°)
OKLaboklab(39.52% 0.0747 -0.1652)
OKLCHoklch(39.52% 0.181 294.3)
XYZxyz(9.8520, 5.2033, 31.4892)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51219B #6B9B21
analogous
#212E9B #51219B #8E219B
triadic
#51219B #9B5121 #219B51
tetradic
#51219B #9B212E #6B9B21 #219B8E
square
#51219B #9B212E #6B9B21 #219B8E
split-complementary
#51219B #9B8E21 #2E9B21
monochromatic
#1C0C36 #371669 #51219B #6B2CCD #8D5ADC

Accessibility & contrast

On white

10.29
#51219B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#51219B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51219B
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51219B#FFFFFF#000000##FFFFFF
##51219B1.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429E
Deuteranopia (green-blind)
#003E99
Tritanopia (blue-blind)
#3B435D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #51219b;
/* rgb */ color: rgb(81, 33, 155);
/* oklch */ color: oklch(39.5% 0.181 294.3);
Tailwind
colors: {
  custom: {
    50: '#8a62ba',
    500: '#51219b',
    950: '#000000',
  },
}
SCSS
$custom: #51219b;
$custom-light: #8a62ba;
$custom-dark: #000000;
JSON
{
  "hex": "#51219b",
  "rgb": {
    "r": 81,
    "g": 33,
    "b": 155
  },
  "hsl": {
    "h": 263.607,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39522,
    "c": 0.18129,
    "h": 294.3
  },
  "luminance": 0.05204
}

Semantic roles & 50–950 ramp

primary
#51219B
secondary
#97C058
accent
#E840A6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0512
muted
#7D7A81

Preview Lab

Preview with #51219B

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

Preview Lab → · Contrast checker → · Palette generator →

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