#512DB6#512DB6

#512DB6 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.5% C 0.200 H 286.8°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#512DB6
RGBrgb(81, 45, 182)
HSLhsl(256, 60%, 45%)
HSVhsv(256, 75%, 71%)
CMYKcmyk(55.5%, 75.3%, 0%, 28.6%)
CIE-LABlab(31.81, 50.01, -66.46)
CIE-LCHlch(31.81, 83.17, 306.96°)
OKLaboklab(43.45% 0.0578 -0.1912)
OKLCHoklch(43.45% 0.2 286.8)
XYZxyz(12.7727, 7.0028, 44.9255)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512DB6 #92B62D
analogous
#2D4EB6 #512DB6 #952DB6
triadic
#512DB6 #B6512D #2DB651
tetradic
#512DB6 #B62D4E #92B62D #2DB695
square
#512DB6 #B62D4E #92B62D #2DB695
split-complementary
#512DB6 #B6952D #4EB62D
monochromatic
#251554 #3B2185 #512DB6 #704DD3 #987EDF

Accessibility & contrast

On white

8.75
#512DB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#512DB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512DB6
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512DB6#FFFFFF#000000##FFFFFF
##512DB61.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBA
Deuteranopia (green-blind)
#0047B3
Tritanopia (blue-blind)
#245370
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #512db6;
/* rgb */ color: rgb(81, 45, 182);
/* oklch */ color: oklch(43.5% 0.200 286.8);
Tailwind
colors: {
  custom: {
    50: '#8d6acd',
    500: '#512db6',
    950: '#000000',
  },
}
SCSS
$custom: #512db6;
$custom-light: #8d6acd;
$custom-dark: #000000;
JSON
{
  "hex": "#512db6",
  "rgb": {
    "r": 81,
    "g": 45,
    "b": 182
  },
  "hsl": {
    "h": 255.766,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.4345,
    "c": 0.19979,
    "h": 286.8
  },
  "luminance": 0.07004
}

Semantic roles & 50–950 ramp

primary
#512DB6
secondary
#B3C877
accent
#E344BA
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #512DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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