#512EAD#512EAD

#512EAD is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.7% C 0.188 H 288.3°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#512EAD
RGBrgb(81, 46, 173)
HSLhsl(257, 58%, 43%)
HSVhsv(257, 73%, 68%)
CMYKcmyk(53.2%, 73.4%, 0%, 32.2%)
CIE-LABlab(31.16, 46.93, -62.16)
CIE-LCHlch(31.16, 77.89, 307.05°)
OKLaboklab(42.74% 0.0592 -0.1787)
OKLCHoklch(42.74% 0.188 288.3)
XYZxyz(11.9109, 6.7199, 40.1965)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512EAD #8AAD2E
analogous
#2E4BAD #512EAD #902EAD
triadic
#512EAD #AD512E #2EAD51
tetradic
#512EAD #AD2E4B #8AAD2E #2EAD90
square
#512EAD #AD2E4B #8AAD2E #2EAD90
split-complementary
#512EAD #AD902E #4BAD2E
monochromatic
#24144C #3A217D #512EAD #6E49CF #957ADC

Accessibility & contrast

On white

8.96
#512EAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512EAD
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512EAD#FFFFFF#000000##FFFFFF
##512EAD1.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB1
Deuteranopia (green-blind)
#0046AB
Tritanopia (blue-blind)
#2D506B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #512ead;
/* rgb */ color: rgb(81, 46, 173);
/* oklch */ color: oklch(42.7% 0.188 288.3);
Tailwind
colors: {
  custom: {
    50: '#8b6ac7',
    500: '#512ead',
    950: '#000000',
  },
}
SCSS
$custom: #512ead;
$custom-light: #8b6ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#512ead",
  "rgb": {
    "r": 81,
    "g": 46,
    "b": 173
  },
  "hsl": {
    "h": 256.535,
    "s": 57.991,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42736,
    "c": 0.18823,
    "h": 288.3
  },
  "luminance": 0.0672
}

Semantic roles & 50–950 ramp

primary
#512EAD
secondary
#AEC473
accent
#E147B7
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #512EAD

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

Preview Lab → · Contrast checker → · Palette generator →

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