#512196#512196

#512196 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.176 H 295.7°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#512196
RGBrgb(81, 33, 150)
HSLhsl(265, 64%, 36%)
HSVhsv(265, 78%, 59%)
CMYKcmyk(46%, 78%, 0%, 41.2%)
CIE-LABlab(26.84, 46.88, -55.29)
CIE-LCHlch(26.84, 72.49, 310.30°)
OKLaboklab(39.06% 0.0761 -0.1584)
OKLCHoklch(39.06% 0.176 295.7)
XYZxyz(9.4407, 5.0388, 29.3234)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512196 #669621
analogous
#212C96 #512196 #8B2196
triadic
#512196 #965121 #219651
tetradic
#512196 #96212C #669621 #21968B
square
#512196 #96212C #669621 #21968B
split-complementary
#512196 #968B21 #2C9621
monochromatic
#1B0B32 #361664 #512196 #6C2CC8 #8D57DA

Accessibility & contrast

On white

10.46
#512196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#512196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512196
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512196#FFFFFF#000000##FFFFFF
##5121961.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004099
Deuteranopia (green-blind)
#003E94
Tritanopia (blue-blind)
#3E415B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #512196;
/* rgb */ color: rgb(81, 33, 150);
/* oklch */ color: oklch(39.1% 0.176 295.7);
Tailwind
colors: {
  custom: {
    50: '#8962b6',
    500: '#512196',
    950: '#000000',
  },
}
SCSS
$custom: #512196;
$custom-light: #8962b6;
$custom-dark: #000000;
JSON
{
  "hex": "#512196",
  "rgb": {
    "r": 81,
    "g": 33,
    "b": 150
  },
  "hsl": {
    "h": 264.615,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39058,
    "c": 0.17576,
    "h": 295.7
  },
  "luminance": 0.05039
}

Semantic roles & 50–950 ramp

primary
#512196
secondary
#93BE55
accent
#E741A3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #512196

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

Preview Lab → · Contrast checker → · Palette generator →

#512196 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva