#512CAA#512CAA

#512CAA is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.2% C 0.187 H 289.2°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#512CAA
RGBrgb(81, 44, 170)
HSLhsl(258, 59%, 42%)
HSVhsv(258, 74%, 67%)
CMYKcmyk(52.4%, 74.1%, 0%, 33.3%)
CIE-LABlab(30.53, 47.10, -61.40)
CIE-LCHlch(30.53, 77.38, 307.49°)
OKLaboklab(42.21% 0.0616 -0.1764)
OKLCHoklch(42.21% 0.187 289.2)
XYZxyz(11.5476, 6.4524, 38.6594)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512CAA #85AA2C
analogous
#2C46AA #512CAA #902CAA
triadic
#512CAA #AA512C #2CAA51
tetradic
#512CAA #AA2C46 #85AA2C #2CAA90
square
#512CAA #AA2C46 #85AA2C #2CAA90
split-complementary
#512CAA #AA902C #46AA2C
monochromatic
#231349 #3A1F79 #512CAA #6D44CF #9375DB

Accessibility & contrast

On white

9.17
#512CAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#512CAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512CAA
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512CAA#FFFFFF#000000##FFFFFF
##512CAA1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAE
Deuteranopia (green-blind)
#0045A8
Tritanopia (blue-blind)
#304E69
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #512caa;
/* rgb */ color: rgb(81, 44, 170);
/* oklch */ color: oklch(42.2% 0.187 289.2);
Tailwind
colors: {
  custom: {
    50: '#8b69c4',
    500: '#512caa',
    950: '#000000',
  },
}
SCSS
$custom: #512caa;
$custom-light: #8b69c4;
$custom-dark: #000000;
JSON
{
  "hex": "#512caa",
  "rgb": {
    "r": 81,
    "g": 44,
    "b": 170
  },
  "hsl": {
    "h": 257.619,
    "s": 58.879,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42205,
    "c": 0.18688,
    "h": 289.2
  },
  "luminance": 0.06453
}

Semantic roles & 50–950 ramp

primary
#512CAA
secondary
#AAC36F
accent
#E246B4
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #512CAA

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

Preview Lab → · Contrast checker → · Palette generator →

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