#512CAC#512CAC

#512CAC is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.4% C 0.189 H 288.8°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#512CAC
RGBrgb(81, 44, 172)
HSLhsl(257, 59%, 42%)
HSVhsv(257, 74%, 67%)
CMYKcmyk(52.9%, 74.4%, 0%, 32.5%)
CIE-LABlab(30.71, 47.66, -62.30)
CIE-LCHlch(30.71, 78.44, 307.42°)
OKLaboklab(42.39% 0.0611 -0.1791)
OKLCHoklch(42.39% 0.189 288.8)
XYZxyz(11.7382, 6.5287, 39.6634)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512CAC #87AC2C
analogous
#2C47AC #512CAC #912CAC
triadic
#512CAC #AC512C #2CAC51
tetradic
#512CAC #AC2C47 #87AC2C #2CAC91
square
#512CAC #AC2C47 #87AC2C #2CAC91
split-complementary
#512CAC #AC912C #47AC2C
monochromatic
#23134B #3A207B #512CAC #6E46D0 #9476DC

Accessibility & contrast

On white

9.11
#512CAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#512CAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512CAC
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512CAC#FFFFFF#000000##FFFFFF
##512CAC1.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB0
Deuteranopia (green-blind)
#0045AA
Tritanopia (blue-blind)
#2E4F6A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #512cac;
/* rgb */ color: rgb(81, 44, 172);
/* oklch */ color: oklch(42.4% 0.189 288.8);
Tailwind
colors: {
  custom: {
    50: '#8b69c6',
    500: '#512cac',
    950: '#000000',
  },
}
SCSS
$custom: #512cac;
$custom-light: #8b69c6;
$custom-dark: #000000;
JSON
{
  "hex": "#512cac",
  "rgb": {
    "r": 81,
    "g": 44,
    "b": 172
  },
  "hsl": {
    "h": 257.344,
    "s": 59.259,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42389,
    "c": 0.18922,
    "h": 288.8
  },
  "luminance": 0.06529
}

Semantic roles & 50–950 ramp

primary
#512CAC
secondary
#ACC470
accent
#E245B5
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #512CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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