#512D86#512D86

#512D86 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.3% C 0.142 H 298.1°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#512D86
RGBrgb(81, 45, 134)
HSLhsl(264, 50%, 35%)
HSVhsv(264, 66%, 53%)
CMYKcmyk(39.6%, 66.4%, 0%, 47.5%)
CIE-LABlab(27.70, 36.39, -43.98)
CIE-LCHlch(27.70, 57.09, 309.61°)
OKLaboklab(39.25% 0.067 -0.1253)
OKLCHoklch(39.25% 0.142 298.1)
XYZxyz(8.6337, 5.3472, 23.1269)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512D86 #62862D
analogous
#2D3586 #512D86 #7E2D86
triadic
#512D86 #86512D #2D8651
tetradic
#512D86 #862D35 #62862D #2D867E
square
#512D86 #862D35 #62862D #2D867E
split-complementary
#512D86 #867E2D #35862D
monochromatic
#1A0E2A #351E58 #512D86 #6D3CB4 #8D63CB

Accessibility & contrast

On white

10.15
#512D86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#512D86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512D86
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512D86#FFFFFF#000000##FFFFFF
##512D861.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004289
Deuteranopia (green-blind)
#004084
Tritanopia (blue-blind)
#454155
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #512d86;
/* rgb */ color: rgb(81, 45, 134);
/* oklch */ color: oklch(39.3% 0.142 298.1);
Tailwind
colors: {
  custom: {
    50: '#8668aa',
    500: '#512d86',
    950: '#000000',
  },
}
SCSS
$custom: #512d86;
$custom-light: #8668aa;
$custom-dark: #000000;
JSON
{
  "hex": "#512d86",
  "rgb": {
    "r": 81,
    "g": 45,
    "b": 134
  },
  "hsl": {
    "h": 264.27,
    "s": 49.721,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39251,
    "c": 0.14208,
    "h": 298.1
  },
  "luminance": 0.05347
}

Semantic roles & 50–950 ramp

primary
#512D86
secondary
#8FB15E
accent
#D94FA1
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #512D86

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

Preview Lab → · Contrast checker → · Palette generator →

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