#512E83#512E83

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

Color values

HEX#512E83
RGBrgb(81, 46, 131)
HSLhsl(265, 48%, 35%)
HSVhsv(265, 65%, 51%)
CMYKcmyk(38.2%, 64.9%, 0%, 48.6%)
CIE-LABlab(27.69, 34.99, -42.13)
CIE-LCHlch(27.69, 54.77, 309.71°)
OKLaboklab(39.17% 0.0661 -0.1198)
OKLCHoklch(39.17% 0.137 298.9)
XYZxyz(8.4660, 5.3419, 22.0534)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512E83 #60832E
analogous
#2E3583 #512E83 #7C2E83
triadic
#512E83 #83512E #2E8351
tetradic
#512E83 #832E35 #60832E #2E837C
square
#512E83 #832E35 #60832E #2E837C
split-complementary
#512E83 #837C2E #35832E
monochromatic
#190E28 #351E56 #512E83 #6D3EB0 #8D63C8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##512E83#FFFFFF#000000##FFFFFF
##512E831.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)
#004186
Deuteranopia (green-blind)
#074181
Tritanopia (blue-blind)
#464154
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #512e83;
/* rgb */ color: rgb(81, 46, 131);
/* oklch */ color: oklch(39.2% 0.137 298.9);
Tailwind
colors: {
  custom: {
    50: '#8669a8',
    500: '#512e83',
    950: '#000000',
  },
}
SCSS
$custom: #512e83;
$custom-light: #8669a8;
$custom-dark: #000000;
JSON
{
  "hex": "#512e83",
  "rgb": {
    "r": 81,
    "g": 46,
    "b": 131
  },
  "hsl": {
    "h": 264.706,
    "s": 48.023,
    "l": 34.706
  },
  "oklch": {
    "l": 0.3917,
    "c": 0.13685,
    "h": 298.9
  },
  "luminance": 0.05342
}

Semantic roles & 50–950 ramp

primary
#512E83
secondary
#8EAF5E
accent
#D850A0
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #512E83

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

Preview Lab → · Contrast checker → · Palette generator →

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