#512DCA#512DCA

#512DCA is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.4% C 0.223 H 283.6°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#512DCA
RGBrgb(81, 45, 202)
HSLhsl(254, 64%, 48%)
HSVhsv(254, 78%, 79%)
CMYKcmyk(59.9%, 77.7%, 0%, 20.8%)
CIE-LABlab(33.75, 55.69, -75.03)
CIE-LCHlch(33.75, 93.44, 306.58°)
OKLaboklab(45.39% 0.0523 -0.2163)
OKLCHoklch(45.39% 0.223 283.6)
XYZxyz(14.9891, 7.8894, 56.5986)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512DCA #A6CA2D
analogous
#2D57CA #512DCA #9F2DCA
triadic
#512DCA #CA512D #2DCA51
tetradic
#512DCA #CA2D57 #A6CA2D #2DCA9F
square
#512DCA #CA2D57 #A6CA2D #2DCA9F
split-complementary
#512DCA #CA9F2D #57CA2D
monochromatic
#291766 #3D2298 #512DCA #775ADA #A18CE5

Accessibility & contrast

On white

8.15
#512DCA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#512DCA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512DCA
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512DCA#FFFFFF#000000##FFFFFF
##512DCA1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054CE
Deuteranopia (green-blind)
#004AC7
Tritanopia (blue-blind)
#005B7B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #512dca;
/* rgb */ color: rgb(81, 45, 202);
/* oklch */ color: oklch(45.4% 0.223 283.6);
Tailwind
colors: {
  custom: {
    50: '#906bdb',
    500: '#512dca',
    950: '#000000',
  },
}
SCSS
$custom: #512dca;
$custom-light: #906bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#512dca",
  "rgb": {
    "r": 81,
    "g": 45,
    "b": 202
  },
  "hsl": {
    "h": 253.758,
    "s": 63.563,
    "l": 48.431
  },
  "oklch": {
    "l": 0.4539,
    "c": 0.22255,
    "h": 283.6
  },
  "luminance": 0.0789
}

Semantic roles & 50–950 ramp

primary
#512DCA
secondary
#BECF83
accent
#E741C1
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #512DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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