#51216F#51216F

#51216F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.8% C 0.132 H 309.5°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#51216F
RGBrgb(81, 33, 111)
HSLhsl(277, 54%, 28%)
HSVhsv(277, 70%, 44%)
CMYKcmyk(27%, 70.3%, 0%, 56.5%)
CIE-LABlab(23.62, 36.85, -36.00)
CIE-LCHlch(23.62, 51.51, 315.67°)
OKLaboklab(35.77% 0.084 -0.1017)
OKLCHoklch(35.77% 0.132 309.5)
XYZxyz(6.8059, 3.9849, 15.4465)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51216F #3F6F21
analogous
#2A216F #51216F #6F2166
triadic
#51216F #6F5121 #216F51
tetradic
#51216F #6F2A21 #3F6F21 #21666F
square
#51216F #6F2A21 #3F6F21 #21666F
split-complementary
#51216F #666F21 #216F2A
monochromatic
#110718 #2F1340 #51216F #732F9E #9443C7

Accessibility & contrast

On white

11.69
#51216F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#51216F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51216F
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51216F#FFFFFF#000000##FFFFFF
##51216F1.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003671
Deuteranopia (green-blind)
#14396D
Tritanopia (blue-blind)
#4D3145
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #51216f;
/* rgb */ color: rgb(81, 33, 111);
/* oklch */ color: oklch(35.8% 0.132 309.5);
Tailwind
colors: {
  custom: {
    50: '#856099',
    500: '#51216f',
    950: '#000000',
  },
}
SCSS
$custom: #51216f;
$custom-light: #856099;
$custom-dark: #000000;
JSON
{
  "hex": "#51216f",
  "rgb": {
    "r": 81,
    "g": 33,
    "b": 111
  },
  "hsl": {
    "h": 276.923,
    "s": 54.167,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35769,
    "c": 0.13194,
    "h": 309.5
  },
  "luminance": 0.03985
}

Semantic roles & 50–950 ramp

primary
#51216F
secondary
#6CA349
accent
#DE4A83
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #51216F

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

Preview Lab → · Contrast checker → · Palette generator →

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