#512EAC#512EAC

#512EAC is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.6% C 0.187 H 288.5°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#512EAC
RGBrgb(81, 46, 172)
HSLhsl(257, 58%, 43%)
HSVhsv(257, 73%, 67%)
CMYKcmyk(52.9%, 73.3%, 0%, 32.5%)
CIE-LABlab(31.07, 46.65, -61.71)
CIE-LCHlch(31.07, 77.36, 307.08°)
OKLaboklab(42.64% 0.0594 -0.1774)
OKLCHoklch(42.64% 0.187 288.5)
XYZxyz(11.8145, 6.6813, 39.6888)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512EAC #89AC2E
analogous
#2E4AAC #512EAC #902EAC
triadic
#512EAC #AC512E #2EAC51
tetradic
#512EAC #AC2E4A #89AC2E #2EAC90
square
#512EAC #AC2E4A #89AC2E #2EAC90
split-complementary
#512EAC #AC902E #4AAC2E
monochromatic
#24144B #3A217C #512EAC #6E49CE #9479DB

Accessibility & contrast

On white

8.99
#512EAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#512EAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512EAC
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512EAC#FFFFFF#000000##FFFFFF
##512EAC1.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB0
Deuteranopia (green-blind)
#0046AA
Tritanopia (blue-blind)
#2E506A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #512eac;
/* rgb */ color: rgb(81, 46, 172);
/* oklch */ color: oklch(42.6% 0.187 288.5);
Tailwind
colors: {
  custom: {
    50: '#8b6ac6',
    500: '#512eac',
    950: '#000000',
  },
}
SCSS
$custom: #512eac;
$custom-light: #8b6ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#512eac",
  "rgb": {
    "r": 81,
    "g": 46,
    "b": 172
  },
  "hsl": {
    "h": 256.667,
    "s": 57.798,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42644,
    "c": 0.18706,
    "h": 288.5
  },
  "luminance": 0.06682
}

Semantic roles & 50–950 ramp

primary
#512EAC
secondary
#ADC372
accent
#E147B6
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #512EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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