#512DB5#512DB5

#512DB5 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.4% C 0.199 H 287.0°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#512DB5
RGBrgb(81, 45, 181)
HSLhsl(256, 60%, 44%)
HSVhsv(256, 75%, 71%)
CMYKcmyk(55.2%, 75.1%, 0%, 29%)
CIE-LABlab(31.72, 49.73, -66.02)
CIE-LCHlch(31.72, 82.65, 306.99°)
OKLaboklab(43.36% 0.0581 -0.19)
OKLCHoklch(43.36% 0.199 287)
XYZxyz(12.6697, 6.9616, 44.3832)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512DB5 #91B52D
analogous
#2D4DB5 #512DB5 #952DB5
triadic
#512DB5 #B5512D #2DB551
tetradic
#512DB5 #B52D4D #91B52D #2DB595
square
#512DB5 #B52D4D #91B52D #2DB595
split-complementary
#512DB5 #B5952D #4DB52D
monochromatic
#251553 #3B2184 #512DB5 #704DD3 #977EDF

Accessibility & contrast

On white

8.78
#512DB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#512DB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512DB5
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512DB5#FFFFFF#000000##FFFFFF
##512DB51.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB9
Deuteranopia (green-blind)
#0047B2
Tritanopia (blue-blind)
#25536F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #512db5;
/* rgb */ color: rgb(81, 45, 181);
/* oklch */ color: oklch(43.4% 0.199 287.0);
Tailwind
colors: {
  custom: {
    50: '#8d6acc',
    500: '#512db5',
    950: '#000000',
  },
}
SCSS
$custom: #512db5;
$custom-light: #8d6acc;
$custom-dark: #000000;
JSON
{
  "hex": "#512db5",
  "rgb": {
    "r": 81,
    "g": 45,
    "b": 181
  },
  "hsl": {
    "h": 255.882,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43355,
    "c": 0.19863,
    "h": 287
  },
  "luminance": 0.06962
}

Semantic roles & 50–950 ramp

primary
#512DB5
secondary
#B2C776
accent
#E344B9
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #512DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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