#512AC2#512AC2

#512AC2 is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.3% C 0.216 H 285.1°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#512AC2
RGBrgb(81, 42, 194)
HSLhsl(255, 64%, 46%)
HSVhsv(255, 78%, 76%)
CMYKcmyk(58.2%, 78.4%, 0%, 23.9%)
CIE-LABlab(32.48, 54.82, -72.45)
CIE-LCHlch(32.48, 90.85, 307.11°)
OKLaboklab(44.27% 0.0565 -0.2087)
OKLCHoklch(44.27% 0.216 285.1)
XYZxyz(13.9559, 7.2994, 51.7020)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512AC2 #9BC22A
analogous
#2A4FC2 #512AC2 #9D2AC2
triadic
#512AC2 #C2512A #2AC251
tetradic
#512AC2 #C22A4F #9BC22A #2AC29D
square
#512AC2 #C22A4F #9BC22A #2AC29D
split-complementary
#512AC2 #C29D2A #4FC22A
monochromatic
#27145D #3C1F90 #512AC2 #7350D9 #9B82E4

Accessibility & contrast

On white

8.54
#512AC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#512AC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512AC2
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512AC2#FFFFFF#000000##FFFFFF
##512AC21.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C6
Deuteranopia (green-blind)
#0048BF
Tritanopia (blue-blind)
#105776
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #512ac2;
/* rgb */ color: rgb(81, 42, 194);
/* oklch */ color: oklch(44.3% 0.216 285.1);
Tailwind
colors: {
  custom: {
    50: '#8f69d6',
    500: '#512ac2',
    950: '#000000',
  },
}
SCSS
$custom: #512ac2;
$custom-light: #8f69d6;
$custom-dark: #000000;
JSON
{
  "hex": "#512ac2",
  "rgb": {
    "r": 81,
    "g": 42,
    "b": 194
  },
  "hsl": {
    "h": 255.395,
    "s": 64.407,
    "l": 46.275
  },
  "oklch": {
    "l": 0.44265,
    "c": 0.21624,
    "h": 285.1
  },
  "luminance": 0.073
}

Semantic roles & 50–950 ramp

primary
#512AC2
secondary
#B8CD7B
accent
#E740BD
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #512AC2

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

Preview Lab → · Contrast checker → · Palette generator →

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