#51216A#51216A

#51216A is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.4% C 0.126 H 311.9°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#51216A
RGBrgb(81, 33, 106)
HSLhsl(279, 53%, 27%)
HSVhsv(279, 69%, 42%)
CMYKcmyk(23.6%, 68.9%, 0%, 58.4%)
CIE-LABlab(23.26, 35.63, -33.34)
CIE-LCHlch(23.26, 48.80, 316.90°)
OKLaboklab(35.4% 0.0844 -0.094)
OKLCHoklch(35.4% 0.126 311.9)
XYZxyz(6.5382, 3.8778, 14.0369)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51216A #3A6A21
analogous
#2D216A #51216A #6A215F
triadic
#51216A #6A5121 #216A51
tetradic
#51216A #6A2D21 #3A6A21 #215F6A
square
#51216A #6A2D21 #3A6A21 #215F6A
split-complementary
#51216A #5F6A21 #216A2D
monochromatic
#120717 #2D123B #51216A #753099 #9741C4

Accessibility & contrast

On white

11.83
#51216A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#51216A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51216A
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51216A#FFFFFF#000000##FFFFFF
##51216A1.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356C
Deuteranopia (green-blind)
#1A3868
Tritanopia (blue-blind)
#4E2F42
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #51216a;
/* rgb */ color: rgb(81, 33, 106);
/* oklch */ color: oklch(35.4% 0.126 311.9);
Tailwind
colors: {
  custom: {
    50: '#856095',
    500: '#51216a',
    950: '#000000',
  },
}
SCSS
$custom: #51216a;
$custom-light: #856095;
$custom-dark: #000000;
JSON
{
  "hex": "#51216a",
  "rgb": {
    "r": 81,
    "g": 33,
    "b": 106
  },
  "hsl": {
    "h": 279.452,
    "s": 52.518,
    "l": 27.255
  },
  "oklch": {
    "l": 0.35397,
    "c": 0.1263,
    "h": 311.9
  },
  "luminance": 0.03878
}

Semantic roles & 50–950 ramp

primary
#51216A
secondary
#669E49
accent
#DC4C7D
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #51216A

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

Preview Lab → · Contrast checker → · Palette generator →

#51216A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva