#512C8F#512C8F

#512C8F is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.8% C 0.155 H 295.7°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#512C8F
RGBrgb(81, 44, 143)
HSLhsl(262, 53%, 37%)
HSVhsv(262, 69%, 56%)
CMYKcmyk(43.4%, 69.2%, 0%, 43.9%)
CIE-LABlab(28.20, 39.46, -48.75)
CIE-LCHlch(28.20, 62.72, 308.98°)
OKLaboklab(39.84% 0.067 -0.1393)
OKLCHoklch(39.84% 0.155 295.7)
XYZxyz(9.2506, 5.5337, 26.5620)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512C8F #6A8F2C
analogous
#2C398F #512C8F #832C8F
triadic
#512C8F #8F512C #2C8F51
tetradic
#512C8F #8F2C39 #6A8F2C #2C8F83
square
#512C8F #8F2C39 #6A8F2C #2C8F83
split-complementary
#512C8F #8F832C #398F2C
monochromatic
#1C0F31 #361E60 #512C8F #6C3ABE #8D66D0

Accessibility & contrast

On white

9.97
#512C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#512C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512C8F
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512C8F#FFFFFF#000000##FFFFFF
##512C8F1.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#00418D
Tritanopia (blue-blind)
#41445A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #512c8f;
/* rgb */ color: rgb(81, 44, 143);
/* oklch */ color: oklch(39.8% 0.155 295.7);
Tailwind
colors: {
  custom: {
    50: '#8768b1',
    500: '#512c8f',
    950: '#000000',
  },
}
SCSS
$custom: #512c8f;
$custom-light: #8768b1;
$custom-dark: #000000;
JSON
{
  "hex": "#512c8f",
  "rgb": {
    "r": 81,
    "g": 44,
    "b": 143
  },
  "hsl": {
    "h": 262.424,
    "s": 52.941,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39835,
    "c": 0.15458,
    "h": 295.7
  },
  "luminance": 0.05534
}

Semantic roles & 50–950 ramp

primary
#512C8F
secondary
#96B661
accent
#DC4BA6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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