#512C8E#512C8E

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

Color values

HEX#512C8E
RGBrgb(81, 44, 142)
HSLhsl(263, 53%, 36%)
HSVhsv(263, 69%, 56%)
CMYKcmyk(43%, 69%, 0%, 44.3%)
CIE-LABlab(28.12, 39.18, -48.27)
CIE-LCHlch(28.12, 62.17, 309.07°)
OKLaboklab(39.75% 0.0672 -0.1379)
OKLCHoklch(39.75% 0.153 296)
XYZxyz(9.1752, 5.5035, 26.1648)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512C8E #698E2C
analogous
#2C388E #512C8E #822C8E
triadic
#512C8E #8E512C #2C8E51
tetradic
#512C8E #8E2C38 #698E2C #2C8E82
square
#512C8E #8E2C38 #698E2C #2C8E82
split-complementary
#512C8E #8E822C #388E2C
monochromatic
#1C0F31 #361E5F #512C8E #6C3ABD #8D65CF

Accessibility & contrast

On white

10.00
#512C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#512C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512C8E
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512C8E#FFFFFF#000000##FFFFFF
##512C8E1.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#00418C
Tritanopia (blue-blind)
#414359
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #512c8e;
/* rgb */ color: rgb(81, 44, 142);
/* oklch */ color: oklch(39.8% 0.153 296.0);
Tailwind
colors: {
  custom: {
    50: '#8768b0',
    500: '#512c8e',
    950: '#000000',
  },
}
SCSS
$custom: #512c8e;
$custom-light: #8768b0;
$custom-dark: #000000;
JSON
{
  "hex": "#512c8e",
  "rgb": {
    "r": 81,
    "g": 44,
    "b": 142
  },
  "hsl": {
    "h": 262.653,
    "s": 52.688,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39752,
    "c": 0.15336,
    "h": 296
  },
  "luminance": 0.05504
}

Semantic roles & 50–950 ramp

primary
#512C8E
secondary
#95B660
accent
#DC4CA6
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #512C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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