#512E9A#512E9A

#512E9A is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.0% C 0.165 H 292.4°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#512E9A
RGBrgb(81, 46, 154)
HSLhsl(259, 54%, 39%)
HSVhsv(259, 70%, 60%)
CMYKcmyk(47.4%, 70.1%, 0%, 39.6%)
CIE-LABlab(29.50, 41.48, -53.39)
CIE-LCHlch(29.50, 67.61, 307.85°)
OKLaboklab(41.05% 0.0631 -0.1529)
OKLCHoklch(41.05% 0.165 292.4)
XYZxyz(10.2014, 6.0361, 31.1932)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512E9A #779A2E
analogous
#2E419A #512E9A #872E9A
triadic
#512E9A #9A512E #2E9A51
tetradic
#512E9A #9A2E41 #779A2E #2E9A87
square
#512E9A #9A2E41 #779A2E #2E9A87
split-complementary
#512E9A #9A872E #419A2E
monochromatic
#1F123C #38206B #512E9A #6B3FC6 #8F6FD4

Accessibility & contrast

On white

9.51
#512E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#512E9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512E9A
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512E9A#FFFFFF#000000##FFFFFF
##512E9A1.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479D
Deuteranopia (green-blind)
#004398
Tritanopia (blue-blind)
#3B4960
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #512e9a;
/* rgb */ color: rgb(81, 46, 154);
/* oklch */ color: oklch(41.0% 0.165 292.4);
Tailwind
colors: {
  custom: {
    50: '#8969b9',
    500: '#512e9a',
    950: '#000000',
  },
}
SCSS
$custom: #512e9a;
$custom-light: #8969b9;
$custom-dark: #000000;
JSON
{
  "hex": "#512e9a",
  "rgb": {
    "r": 81,
    "g": 46,
    "b": 154
  },
  "hsl": {
    "h": 259.444,
    "s": 54,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41047,
    "c": 0.16545,
    "h": 292.4
  },
  "luminance": 0.06036
}

Semantic roles & 50–950 ramp

primary
#512E9A
secondary
#A0BB69
accent
#DD4AAE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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