#512FAE#512FAE

#512FAE is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.0% C 0.188 H 288.0°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#512FAE
RGBrgb(81, 47, 174)
HSLhsl(256, 57%, 43%)
HSVhsv(256, 73%, 68%)
CMYKcmyk(53.4%, 73%, 0%, 31.8%)
CIE-LABlab(31.43, 46.70, -62.31)
CIE-LCHlch(31.43, 77.87, 306.85°)
OKLaboklab(42.96% 0.0581 -0.1791)
OKLCHoklch(42.96% 0.188 288)
XYZxyz(12.0476, 6.8378, 40.7212)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512FAE #8CAE2F
analogous
#2F4CAE #512FAE #902FAE
triadic
#512FAE #AE512F #2FAE51
tetradic
#512FAE #AE2F4C #8CAE2F #2FAE90
square
#512FAE #AE2F4C #8CAE2F #2FAE90
split-complementary
#512FAE #AE902F #4CAE2F
monochromatic
#24154E #3B227E #512FAE #6F4CCF #957CDC

Accessibility & contrast

On white

8.87
#512FAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#512FAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512FAE
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512FAE#FFFFFF#000000##FFFFFF
##512FAE1.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB2
Deuteranopia (green-blind)
#0047AC
Tritanopia (blue-blind)
#2C516C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #512fae;
/* rgb */ color: rgb(81, 47, 174);
/* oklch */ color: oklch(43.0% 0.188 288.0);
Tailwind
colors: {
  custom: {
    50: '#8b6bc7',
    500: '#512fae',
    950: '#000000',
  },
}
SCSS
$custom: #512fae;
$custom-light: #8b6bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#512fae",
  "rgb": {
    "r": 81,
    "g": 47,
    "b": 174
  },
  "hsl": {
    "h": 256.063,
    "s": 57.466,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42958,
    "c": 0.18832,
    "h": 288
  },
  "luminance": 0.06838
}

Semantic roles & 50–950 ramp

primary
#512FAE
secondary
#AFC475
accent
#E147B8
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #512FAE

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

Preview Lab → · Contrast checker → · Palette generator →

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