#512DAE#512DAE

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

Color values

HEX#512DAE
RGBrgb(81, 45, 174)
HSLhsl(257, 59%, 43%)
HSVhsv(257, 74%, 68%)
CMYKcmyk(53.4%, 74.1%, 0%, 31.8%)
CIE-LABlab(31.07, 47.73, -62.91)
CIE-LCHlch(31.07, 78.97, 307.19°)
OKLaboklab(42.7% 0.0598 -0.1809)
OKLCHoklch(42.7% 0.19 288.3)
XYZxyz(11.9695, 6.6815, 40.6952)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512DAE #8AAE2D
analogous
#2D4AAE #512DAE #912DAE
triadic
#512DAE #AE512D #2DAE51
tetradic
#512DAE #AE2D4A #8AAE2D #2DAE91
square
#512DAE #AE2D4A #8AAE2D #2DAE91
split-complementary
#512DAE #AE912D #4AAE2D
monochromatic
#24144D #3A207D #512DAE #6E48D0 #9579DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##512DAE#FFFFFF#000000##FFFFFF
##512DAE1.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)
#004CB2
Deuteranopia (green-blind)
#0046AC
Tritanopia (blue-blind)
#2C506B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #512dae;
/* rgb */ color: rgb(81, 45, 174);
/* oklch */ color: oklch(42.7% 0.190 288.3);
Tailwind
colors: {
  custom: {
    50: '#8c6ac7',
    500: '#512dae',
    950: '#000000',
  },
}
SCSS
$custom: #512dae;
$custom-light: #8c6ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#512dae",
  "rgb": {
    "r": 81,
    "g": 45,
    "b": 174
  },
  "hsl": {
    "h": 256.744,
    "s": 58.904,
    "l": 42.941
  },
  "oklch": {
    "l": 0.427,
    "c": 0.19049,
    "h": 288.3
  },
  "luminance": 0.06682
}

Semantic roles & 50–950 ramp

primary
#512DAE
secondary
#AEC472
accent
#E246B6
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #512DAE

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

Preview Lab → · Contrast checker → · Palette generator →

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