#512E8E#512E8E

#512E8E is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.0% C 0.151 H 295.5°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#512E8E
RGBrgb(81, 46, 142)
HSLhsl(262, 51%, 37%)
HSVhsv(262, 68%, 56%)
CMYKcmyk(43%, 67.6%, 0%, 44.3%)
CIE-LABlab(28.53, 38.07, -47.61)
CIE-LCHlch(28.53, 60.96, 308.65°)
OKLaboklab(40.04% 0.0649 -0.1359)
OKLCHoklch(40.04% 0.151 295.5)
XYZxyz(9.2515, 5.6561, 26.1902)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512E8E #6B8E2E
analogous
#2E3B8E #512E8E #812E8E
triadic
#512E8E #8E512E #2E8E51
tetradic
#512E8E #8E2E3B #6B8E2E #2E8E81
square
#512E8E #8E2E3B #6B8E2E #2E8E81
split-complementary
#512E8E #8E812E #3B8E2E
monochromatic
#1C1032 #371F60 #512E8E #6B3DBC #8D68CE

Accessibility & contrast

On white

9.85
#512E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#512E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512E8E
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512E8E#FFFFFF#000000##FFFFFF
##512E8E1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#41455A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #512e8e;
/* rgb */ color: rgb(81, 46, 142);
/* oklch */ color: oklch(40.0% 0.151 295.5);
Tailwind
colors: {
  custom: {
    50: '#8769b0',
    500: '#512e8e',
    950: '#000000',
  },
}
SCSS
$custom: #512e8e;
$custom-light: #8769b0;
$custom-dark: #000000;
JSON
{
  "hex": "#512e8e",
  "rgb": {
    "r": 81,
    "g": 46,
    "b": 142
  },
  "hsl": {
    "h": 261.875,
    "s": 51.064,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40042,
    "c": 0.15067,
    "h": 295.5
  },
  "luminance": 0.05656
}

Semantic roles & 50–950 ramp

primary
#512E8E
secondary
#97B563
accent
#DB4DA7
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #512E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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