#512EAE#512EAE

#512EAE is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.8% C 0.189 H 288.1°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#512EAE
RGBrgb(81, 46, 174)
HSLhsl(256, 58%, 43%)
HSVhsv(256, 74%, 68%)
CMYKcmyk(53.4%, 73.6%, 0%, 31.8%)
CIE-LABlab(31.25, 47.22, -62.61)
CIE-LCHlch(31.25, 78.42, 307.02°)
OKLaboklab(42.83% 0.059 -0.18)
OKLCHoklch(42.83% 0.189 288.1)
XYZxyz(12.0081, 6.7587, 40.7080)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512EAE #8BAE2E
analogous
#2E4BAE #512EAE #912EAE
triadic
#512EAE #AE512E #2EAE51
tetradic
#512EAE #AE2E4B #8BAE2E #2EAE91
square
#512EAE #AE2E4B #8BAE2E #2EAE91
split-complementary
#512EAE #AE912E #4BAE2E
monochromatic
#24144D #3A217E #512EAE #6E4ACF #957ADC

Accessibility & contrast

On white

8.93
#512EAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#512EAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512EAE
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512EAE#FFFFFF#000000##FFFFFF
##512EAE1.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB2
Deuteranopia (green-blind)
#0046AC
Tritanopia (blue-blind)
#2C516B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #512eae;
/* rgb */ color: rgb(81, 46, 174);
/* oklch */ color: oklch(42.8% 0.189 288.1);
Tailwind
colors: {
  custom: {
    50: '#8c6ac7',
    500: '#512eae',
    950: '#000000',
  },
}
SCSS
$custom: #512eae;
$custom-light: #8c6ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#512eae",
  "rgb": {
    "r": 81,
    "g": 46,
    "b": 174
  },
  "hsl": {
    "h": 256.406,
    "s": 58.182,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42828,
    "c": 0.18941,
    "h": 288.1
  },
  "luminance": 0.06759
}

Semantic roles & 50–950 ramp

primary
#512EAE
secondary
#AEC474
accent
#E146B7
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #512EAE

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

Preview Lab → · Contrast checker → · Palette generator →

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