#512EAA#512EAA

#512EAA is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.5% C 0.185 H 288.9°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#512EAA
RGBrgb(81, 46, 170)
HSLhsl(257, 57%, 42%)
HSVhsv(257, 73%, 67%)
CMYKcmyk(52.4%, 72.9%, 0%, 33.3%)
CIE-LABlab(30.89, 46.07, -60.81)
CIE-LCHlch(30.89, 76.29, 307.15°)
OKLaboklab(42.46% 0.0599 -0.1747)
OKLCHoklch(42.46% 0.185 288.9)
XYZxyz(11.6239, 6.6051, 38.6848)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512EAA #87AA2E
analogous
#2E49AA #512EAA #8F2EAA
triadic
#512EAA #AA512E #2EAA51
tetradic
#512EAA #AA2E49 #87AA2E #2EAA8F
square
#512EAA #AA2E49 #87AA2E #2EAA8F
split-complementary
#512EAA #AA8F2E #49AA2E
monochromatic
#23144A #3A217A #512EAA #6D48CD #9478DA

Accessibility & contrast

On white

9.05
#512EAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#512EAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512EAA
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512EAA#FFFFFF#000000##FFFFFF
##512EAA1.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAE
Deuteranopia (green-blind)
#0046A8
Tritanopia (blue-blind)
#304F69
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #512eaa;
/* rgb */ color: rgb(81, 46, 170);
/* oklch */ color: oklch(42.5% 0.185 288.9);
Tailwind
colors: {
  custom: {
    50: '#8b6ac4',
    500: '#512eaa',
    950: '#000000',
  },
}
SCSS
$custom: #512eaa;
$custom-light: #8b6ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#512eaa",
  "rgb": {
    "r": 81,
    "g": 46,
    "b": 170
  },
  "hsl": {
    "h": 256.935,
    "s": 57.407,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42462,
    "c": 0.18469,
    "h": 288.9
  },
  "luminance": 0.06606
}

Semantic roles & 50–950 ramp

primary
#512EAA
secondary
#ACC371
accent
#E147B5
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #512EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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