#512CA6#512CA6

#512CA6 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.8% C 0.182 H 290.1°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#512CA6
RGBrgb(81, 44, 166)
HSLhsl(258, 58%, 41%)
HSVhsv(258, 73%, 65%)
CMYKcmyk(51.2%, 73.5%, 0%, 34.9%)
CIE-LABlab(30.17, 45.96, -59.59)
CIE-LCHlch(30.17, 75.25, 307.64°)
OKLaboklab(41.84% 0.0625 -0.1711)
OKLCHoklch(41.84% 0.182 290.1)
XYZxyz(11.1750, 6.3034, 36.6969)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512CA6 #81A62C
analogous
#2C44A6 #512CA6 #8E2CA6
triadic
#512CA6 #A6512C #2CA651
tetradic
#512CA6 #A62C44 #81A62C #2CA68E
square
#512CA6 #A62C44 #81A62C #2CA68E
split-complementary
#512CA6 #A68E2C #44A62C
monochromatic
#221245 #391F76 #512CA6 #6C42CD #9273DA

Accessibility & contrast

On white

9.29
#512CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#512CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512CA6
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512CA6#FFFFFF#000000##FFFFFF
##512CA61.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AA
Deuteranopia (green-blind)
#0044A4
Tritanopia (blue-blind)
#334D66
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #512ca6;
/* rgb */ color: rgb(81, 44, 166);
/* oklch */ color: oklch(41.8% 0.182 290.1);
Tailwind
colors: {
  custom: {
    50: '#8a69c1',
    500: '#512ca6',
    950: '#000000',
  },
}
SCSS
$custom: #512ca6;
$custom-light: #8a69c1;
$custom-dark: #000000;
JSON
{
  "hex": "#512ca6",
  "rgb": {
    "r": 81,
    "g": 44,
    "b": 166
  },
  "hsl": {
    "h": 258.197,
    "s": 58.095,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41839,
    "c": 0.18219,
    "h": 290.1
  },
  "luminance": 0.06304
}

Semantic roles & 50–950 ramp

primary
#512CA6
secondary
#A8C16D
accent
#E146B2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #512CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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