#512DB2#512DB2

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

Color values

HEX#512DB2
RGBrgb(81, 45, 178)
HSLhsl(256, 60%, 44%)
HSVhsv(256, 75%, 70%)
CMYKcmyk(54.5%, 74.7%, 0%, 30.2%)
CIE-LABlab(31.44, 48.87, -64.69)
CIE-LCHlch(31.44, 81.08, 307.07°)
OKLaboklab(43.07% 0.0588 -0.1861)
OKLCHoklch(43.07% 0.195 287.5)
XYZxyz(12.3652, 6.8398, 42.7795)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512DB2 #8EB22D
analogous
#2D4BB2 #512DB2 #932DB2
triadic
#512DB2 #B2512D #2DB251
tetradic
#512DB2 #B22D4B #8EB22D #2DB293
square
#512DB2 #B22D4B #8EB22D #2DB293
split-complementary
#512DB2 #B2932D #4BB22D
monochromatic
#251450 #3B2181 #512DB2 #6F4BD1 #967CDE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##512DB2#FFFFFF#000000##FFFFFF
##512DB21.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)
#004DB6
Deuteranopia (green-blind)
#0046B0
Tritanopia (blue-blind)
#29526D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #512db2;
/* rgb */ color: rgb(81, 45, 178);
/* oklch */ color: oklch(43.1% 0.195 287.5);
Tailwind
colors: {
  custom: {
    50: '#8c6aca',
    500: '#512db2',
    950: '#000000',
  },
}
SCSS
$custom: #512db2;
$custom-light: #8c6aca;
$custom-dark: #000000;
JSON
{
  "hex": "#512db2",
  "rgb": {
    "r": 81,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 256.241,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43073,
    "c": 0.19515,
    "h": 287.5
  },
  "luminance": 0.0684
}

Semantic roles & 50–950 ramp

primary
#512DB2
secondary
#B0C675
accent
#E345B8
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #512DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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