#512CA0#512CA0

#512CA0 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.3% C 0.175 H 291.4°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#512CA0
RGBrgb(81, 44, 160)
HSLhsl(259, 57%, 40%)
HSVhsv(259, 73%, 63%)
CMYKcmyk(49.4%, 72.5%, 0%, 37.3%)
CIE-LABlab(29.63, 44.25, -56.83)
CIE-LCHlch(29.63, 72.03, 307.91°)
OKLaboklab(41.3% 0.0639 -0.163)
OKLCHoklch(41.3% 0.175 291.4)
XYZxyz(10.6374, 6.0884, 33.8656)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512CA0 #7BA02C
analogous
#2C41A0 #512CA0 #8B2CA0
triadic
#512CA0 #A0512C #2CA051
tetradic
#512CA0 #A02C41 #7BA02C #2CA08B
square
#512CA0 #A02C41 #7BA02C #2CA08B
split-complementary
#512CA0 #A08B2C #41A02C
monochromatic
#201240 #391F70 #512CA0 #6B3FCA #906FD7

Accessibility & contrast

On white

9.47
#512CA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#512CA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512CA0
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512CA0#FFFFFF#000000##FFFFFF
##512CA01.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A3
Deuteranopia (green-blind)
#00439E
Tritanopia (blue-blind)
#374A63
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #512ca0;
/* rgb */ color: rgb(81, 44, 160);
/* oklch */ color: oklch(41.3% 0.175 291.4);
Tailwind
colors: {
  custom: {
    50: '#8a69bd',
    500: '#512ca0',
    950: '#000000',
  },
}
SCSS
$custom: #512ca0;
$custom-light: #8a69bd;
$custom-dark: #000000;
JSON
{
  "hex": "#512ca0",
  "rgb": {
    "r": 81,
    "g": 44,
    "b": 160
  },
  "hsl": {
    "h": 259.138,
    "s": 56.863,
    "l": 40
  },
  "oklch": {
    "l": 0.41299,
    "c": 0.17509,
    "h": 291.4
  },
  "luminance": 0.06089
}

Semantic roles & 50–950 ramp

primary
#512CA0
secondary
#A3BF69
accent
#E048B0
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #512CA0

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

Preview Lab → · Contrast checker → · Palette generator →

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