#512C86#512C86

#512C86 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.1% C 0.144 H 298.4°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#512C86
RGBrgb(81, 44, 134)
HSLhsl(265, 51%, 35%)
HSVhsv(265, 67%, 53%)
CMYKcmyk(39.6%, 67.2%, 0%, 47.5%)
CIE-LABlab(27.50, 36.95, -44.32)
CIE-LCHlch(27.50, 57.70, 309.82°)
OKLaboklab(39.1% 0.0682 -0.1263)
OKLCHoklch(39.1% 0.144 298.4)
XYZxyz(8.5960, 5.2718, 23.1143)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512C86 #61862C
analogous
#2C3486 #512C86 #7E2C86
triadic
#512C86 #86512C #2C8651
tetradic
#512C86 #862C34 #61862C #2C867E
square
#512C86 #862C34 #61862C #2C867E
split-complementary
#512C86 #867E2C #34862C
monochromatic
#190E2A #351D58 #512C86 #6D3BB4 #8D61CB

Accessibility & contrast

On white

10.22
#512C86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#512C86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512C86
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512C86#FFFFFF#000000##FFFFFF
##512C861.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)
#004189
Deuteranopia (green-blind)
#004084
Tritanopia (blue-blind)
#454155
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #512c86;
/* rgb */ color: rgb(81, 44, 134);
/* oklch */ color: oklch(39.1% 0.144 298.4);
Tailwind
colors: {
  custom: {
    50: '#8668aa',
    500: '#512c86',
    950: '#000000',
  },
}
SCSS
$custom: #512c86;
$custom-light: #8668aa;
$custom-dark: #000000;
JSON
{
  "hex": "#512c86",
  "rgb": {
    "r": 81,
    "g": 44,
    "b": 134
  },
  "hsl": {
    "h": 264.667,
    "s": 50.562,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39103,
    "c": 0.14351,
    "h": 298.4
  },
  "luminance": 0.05272
}

Semantic roles & 50–950 ramp

primary
#512C86
secondary
#8EB15C
accent
#DA4EA0
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #512C86

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

Preview Lab → · Contrast checker → · Palette generator →

#512C86 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva