#512BAA#512BAA

#512BAA is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.188 H 289.4°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#512BAA
RGBrgb(81, 43, 170)
HSLhsl(258, 60%, 42%)
HSVhsv(258, 75%, 67%)
CMYKcmyk(52.4%, 74.7%, 0%, 33.3%)
CIE-LABlab(30.35, 47.60, -61.69)
CIE-LCHlch(30.35, 77.92, 307.65°)
OKLaboklab(42.08% 0.0624 -0.1773)
OKLCHoklch(42.08% 0.188 289.4)
XYZxyz(11.5108, 6.3788, 38.6471)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512BAA #84AA2B
analogous
#2B45AA #512BAA #912BAA
triadic
#512BAA #AA512B #2BAA51
tetradic
#512BAA #AA2B45 #84AA2B #2BAA91
square
#512BAA #AA2B45 #84AA2B #2BAA91
split-complementary
#512BAA #AA912B #45AA2B
monochromatic
#221248 #3A1F79 #512BAA #6D43CF #9374DC

Accessibility & contrast

On white

9.23
#512BAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#512BAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512BAA
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512BAA#FFFFFF#000000##FFFFFF
##512BAA1.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAE
Deuteranopia (green-blind)
#0044A8
Tritanopia (blue-blind)
#304E68
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #512baa;
/* rgb */ color: rgb(81, 43, 170);
/* oklch */ color: oklch(42.1% 0.188 289.4);
Tailwind
colors: {
  custom: {
    50: '#8b68c4',
    500: '#512baa',
    950: '#000000',
  },
}
SCSS
$custom: #512baa;
$custom-light: #8b68c4;
$custom-dark: #000000;
JSON
{
  "hex": "#512baa",
  "rgb": {
    "r": 81,
    "g": 43,
    "b": 170
  },
  "hsl": {
    "h": 257.953,
    "s": 59.624,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42079,
    "c": 0.18796,
    "h": 289.4
  },
  "luminance": 0.06379
}

Semantic roles & 50–950 ramp

primary
#512BAA
secondary
#AAC36E
accent
#E345B4
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #512BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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