#512CA3#512CA3

#512CA3 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.179 H 290.7°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#512CA3
RGBrgb(81, 44, 163)
HSLhsl(259, 57%, 41%)
HSVhsv(259, 73%, 64%)
CMYKcmyk(50.3%, 73%, 0%, 36.1%)
CIE-LABlab(29.90, 45.11, -58.21)
CIE-LCHlch(29.90, 73.64, 307.77°)
OKLaboklab(41.57% 0.0632 -0.1671)
OKLCHoklch(41.57% 0.179 290.7)
XYZxyz(10.9030, 6.1946, 35.2644)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512CA3 #7EA32C
analogous
#2C43A3 #512CA3 #8C2CA3
triadic
#512CA3 #A3512C #2CA351
tetradic
#512CA3 #A32C43 #7EA32C #2CA38C
square
#512CA3 #A32C43 #7EA32C #2CA38C
split-complementary
#512CA3 #A38C2C #43A32C
monochromatic
#211243 #391F73 #512CA3 #6C41CC #9171D9

Accessibility & contrast

On white

9.38
#512CA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#512CA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512CA3
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512CA3#FFFFFF#000000##FFFFFF
##512CA31.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A6
Deuteranopia (green-blind)
#0044A1
Tritanopia (blue-blind)
#354B65
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #512ca3;
/* rgb */ color: rgb(81, 44, 163);
/* oklch */ color: oklch(41.6% 0.179 290.7);
Tailwind
colors: {
  custom: {
    50: '#8a69bf',
    500: '#512ca3',
    950: '#000000',
  },
}
SCSS
$custom: #512ca3;
$custom-light: #8a69bf;
$custom-dark: #000000;
JSON
{
  "hex": "#512ca3",
  "rgb": {
    "r": 81,
    "g": 44,
    "b": 163
  },
  "hsl": {
    "h": 258.655,
    "s": 57.488,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41568,
    "c": 0.17865,
    "h": 290.7
  },
  "luminance": 0.06195
}

Semantic roles & 50–950 ramp

primary
#512CA3
secondary
#A5C06B
accent
#E147B1
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #512CA3

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

Preview Lab → · Contrast checker → · Palette generator →

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