#512DAC#512DAC

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

Color values

HEX#512DAC
RGBrgb(81, 45, 172)
HSLhsl(257, 59%, 43%)
HSVhsv(257, 74%, 67%)
CMYKcmyk(52.9%, 73.8%, 0%, 32.5%)
CIE-LABlab(30.89, 47.16, -62.01)
CIE-LCHlch(30.89, 77.90, 307.25°)
OKLaboklab(42.52% 0.0603 -0.1782)
OKLCHoklch(42.52% 0.188 288.7)
XYZxyz(11.7759, 6.6041, 39.6760)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512DAC #88AC2D
analogous
#2D48AC #512DAC #902DAC
triadic
#512DAC #AC512D #2DAC51
tetradic
#512DAC #AC2D48 #88AC2D #2DAC90
square
#512DAC #AC2D48 #88AC2D #2DAC90
split-complementary
#512DAC #AC902D #48AC2D
monochromatic
#23144B #3A207B #512DAC #6E47CF #9478DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##512DAC#FFFFFF#000000##FFFFFF
##512DAC1.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)
#004BB0
Deuteranopia (green-blind)
#0045AA
Tritanopia (blue-blind)
#2E4F6A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #512dac;
/* rgb */ color: rgb(81, 45, 172);
/* oklch */ color: oklch(42.5% 0.188 288.7);
Tailwind
colors: {
  custom: {
    50: '#8b6ac6',
    500: '#512dac',
    950: '#000000',
  },
}
SCSS
$custom: #512dac;
$custom-light: #8b6ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#512dac",
  "rgb": {
    "r": 81,
    "g": 45,
    "b": 172
  },
  "hsl": {
    "h": 257.008,
    "s": 58.525,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42516,
    "c": 0.18815,
    "h": 288.7
  },
  "luminance": 0.06605
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #512DAC

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

Preview Lab → · Contrast checker → · Palette generator →

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