#512AC1#512AC1

#512AC1 is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.2% C 0.215 H 285.3°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#512AC1
RGBrgb(81, 42, 193)
HSLhsl(255, 64%, 46%)
HSVhsv(255, 78%, 76%)
CMYKcmyk(58%, 78.2%, 0%, 24.3%)
CIE-LABlab(32.38, 54.54, -72.02)
CIE-LCHlch(32.38, 90.34, 307.14°)
OKLaboklab(44.17% 0.0568 -0.2075)
OKLCHoklch(44.17% 0.215 285.3)
XYZxyz(13.8440, 7.2547, 51.1125)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512AC1 #9AC12A
analogous
#2A4EC1 #512AC1 #9C2AC1
triadic
#512AC1 #C1512A #2AC151
tetradic
#512AC1 #C12A4E #9AC12A #2AC19C
square
#512AC1 #C12A4E #9AC12A #2AC19C
split-complementary
#512AC1 #C19C2A #4EC12A
monochromatic
#27145C #3C1F8F #512AC1 #734FD9 #9B82E4

Accessibility & contrast

On white

8.57
#512AC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#512AC1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512AC1
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512AC1#FFFFFF#000000##FFFFFF
##512AC11.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C5
Deuteranopia (green-blind)
#0047BE
Tritanopia (blue-blind)
#125675
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #512ac1;
/* rgb */ color: rgb(81, 42, 193);
/* oklch */ color: oklch(44.2% 0.215 285.3);
Tailwind
colors: {
  custom: {
    50: '#8f69d5',
    500: '#512ac1',
    950: '#000000',
  },
}
SCSS
$custom: #512ac1;
$custom-light: #8f69d5;
$custom-dark: #000000;
JSON
{
  "hex": "#512ac1",
  "rgb": {
    "r": 81,
    "g": 42,
    "b": 193
  },
  "hsl": {
    "h": 255.497,
    "s": 64.255,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44166,
    "c": 0.21513,
    "h": 285.3
  },
  "luminance": 0.07256
}

Semantic roles & 50–950 ramp

primary
#512AC1
secondary
#B7CD7A
accent
#E741BC
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #512AC1

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

Preview Lab → · Contrast checker → · Palette generator →

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