#512CA2#512CA2

#512CA2 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.5% C 0.177 H 290.9°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#512CA2
RGBrgb(81, 44, 162)
HSLhsl(259, 57%, 40%)
HSVhsv(259, 73%, 64%)
CMYKcmyk(50%, 72.8%, 0%, 36.5%)
CIE-LABlab(29.81, 44.82, -57.75)
CIE-LCHlch(29.81, 73.11, 307.82°)
OKLaboklab(41.48% 0.0634 -0.1657)
OKLCHoklch(41.48% 0.177 290.9)
XYZxyz(10.8138, 6.1589, 34.7944)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512CA2 #7DA22C
analogous
#2C42A2 #512CA2 #8C2CA2
triadic
#512CA2 #A2512C #2CA251
tetradic
#512CA2 #A22C42 #7DA22C #2CA28C
square
#512CA2 #A22C42 #7DA22C #2CA28C
split-complementary
#512CA2 #A28C2C #42A22C
monochromatic
#211242 #391F72 #512CA2 #6C40CB #9170D8

Accessibility & contrast

On white

9.41
#512CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#512CA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512CA2
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512CA2#FFFFFF#000000##FFFFFF
##512CA21.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A5
Deuteranopia (green-blind)
#0044A0
Tritanopia (blue-blind)
#364B64
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #512ca2;
/* rgb */ color: rgb(81, 44, 162);
/* oklch */ color: oklch(41.5% 0.177 290.9);
Tailwind
colors: {
  custom: {
    50: '#8a69bf',
    500: '#512ca2',
    950: '#000000',
  },
}
SCSS
$custom: #512ca2;
$custom-light: #8a69bf;
$custom-dark: #000000;
JSON
{
  "hex": "#512ca2",
  "rgb": {
    "r": 81,
    "g": 44,
    "b": 162
  },
  "hsl": {
    "h": 258.814,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41478,
    "c": 0.17747,
    "h": 290.9
  },
  "luminance": 0.06159
}

Semantic roles & 50–950 ramp

primary
#512CA2
secondary
#A5BF6A
accent
#E147B0
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #512CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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