#512DB9#512DB9

#512DB9 is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 43.7% C 0.203 H 286.3°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#512DB9
RGBrgb(81, 45, 185)
HSLhsl(255, 61%, 45%)
HSVhsv(255, 76%, 73%)
CMYKcmyk(56.2%, 75.7%, 0%, 27.5%)
CIE-LABlab(32.10, 50.87, -67.77)
CIE-LCHlch(32.10, 84.74, 306.89°)
OKLaboklab(43.74% 0.057 -0.1951)
OKLCHoklch(43.74% 0.203 286.3)
XYZxyz(13.0861, 7.1281, 46.5759)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512DB9 #95B92D
analogous
#2D4FB9 #512DB9 #972DB9
triadic
#512DB9 #B9512D #2DB951
tetradic
#512DB9 #B92D4F #95B92D #2DB997
square
#512DB9 #B92D4F #95B92D #2DB997
split-complementary
#512DB9 #B9972D #4FB92D
monochromatic
#261557 #3B2188 #512DB9 #714FD4 #9980E0

Accessibility & contrast

On white

8.66
#512DB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#512DB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512DB9
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512DB9#FFFFFF#000000##FFFFFF
##512DB91.008.662.438.66
#FFFFFF8.661.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBD
Deuteranopia (green-blind)
#0047B6
Tritanopia (blue-blind)
#205471
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #512db9;
/* rgb */ color: rgb(81, 45, 185);
/* oklch */ color: oklch(43.7% 0.203 286.3);
Tailwind
colors: {
  custom: {
    50: '#8d6acf',
    500: '#512db9',
    950: '#000000',
  },
}
SCSS
$custom: #512db9;
$custom-light: #8d6acf;
$custom-dark: #000000;
JSON
{
  "hex": "#512db9",
  "rgb": {
    "r": 81,
    "g": 45,
    "b": 185
  },
  "hsl": {
    "h": 255.429,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43735,
    "c": 0.20325,
    "h": 286.3
  },
  "luminance": 0.07129
}

Semantic roles & 50–950 ramp

primary
#512DB9
secondary
#B4C979
accent
#E444BB
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #512DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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