#512581#512581

#512581 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.7% C 0.147 H 301.5°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#512581
RGBrgb(81, 37, 129)
HSLhsl(269, 55%, 33%)
HSVhsv(269, 71%, 51%)
CMYKcmyk(37.2%, 71.3%, 0%, 49.4%)
CIE-LABlab(25.74, 39.38, -44.04)
CIE-LCHlch(25.74, 59.07, 311.80°)
OKLaboklab(37.72% 0.077 -0.1254)
OKLCHoklch(37.72% 0.147 301.5)
XYZxyz(8.0164, 4.6574, 21.2413)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512581 #558125
analogous
#252781 #512581 #7F2581
triadic
#512581 #815125 #258151
tetradic
#512581 #812527 #558125 #25817F
square
#512581 #812527 #558125 #25817F
split-complementary
#512581 #817F25 #278125
monochromatic
#150A22 #331751 #512581 #6F33B1 #8E53CE

Accessibility & contrast

On white

10.87
#512581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#512581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512581
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512581#FFFFFF#000000##FFFFFF
##5125811.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C84
Deuteranopia (green-blind)
#003C7F
Tritanopia (blue-blind)
#473B50
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #512581;
/* rgb */ color: rgb(81, 37, 129);
/* oklch */ color: oklch(37.7% 0.147 301.5);
Tailwind
colors: {
  custom: {
    50: '#8663a6',
    500: '#512581',
    950: '#000000',
  },
}
SCSS
$custom: #512581;
$custom-light: #8663a6;
$custom-dark: #000000;
JSON
{
  "hex": "#512581",
  "rgb": {
    "r": 81,
    "g": 37,
    "b": 129
  },
  "hsl": {
    "h": 268.696,
    "s": 55.422,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37717,
    "c": 0.14714,
    "h": 301.5
  },
  "luminance": 0.04657
}

Semantic roles & 50–950 ramp

primary
#512581
secondary
#83B250
accent
#DF4997
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #512581

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

Preview Lab → · Contrast checker → · Palette generator →

#512581 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva