#512AAC#512AAC

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

Color values

HEX#512AAC
RGBrgb(81, 42, 172)
HSLhsl(258, 61%, 42%)
HSVhsv(258, 76%, 67%)
CMYKcmyk(52.9%, 75.6%, 0%, 32.5%)
CIE-LABlab(30.36, 48.65, -62.88)
CIE-LCHlch(30.36, 79.50, 307.73°)
OKLaboklab(42.14% 0.0627 -0.1807)
OKLCHoklch(42.14% 0.191 289.1)
XYZxyz(11.6655, 6.3833, 39.6391)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512AAC #85AC2A
analogous
#2A44AC #512AAC #922AAC
triadic
#512AAC #AC512A #2AAC51
tetradic
#512AAC #AC2A44 #85AC2A #2AAC92
square
#512AAC #AC2A44 #85AC2A #2AAC92
split-complementary
#512AAC #AC922A #44AC2A
monochromatic
#23124A #3A1E7B #512AAC #6D42D1 #9373DD

Accessibility & contrast

On white

9.22
#512AAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512AAC
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512AAC#FFFFFF#000000##FFFFFF
##512AAC1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB0
Deuteranopia (green-blind)
#0044AA
Tritanopia (blue-blind)
#2E4E69
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #512aac;
/* rgb */ color: rgb(81, 42, 172);
/* oklch */ color: oklch(42.1% 0.191 289.1);
Tailwind
colors: {
  custom: {
    50: '#8c68c6',
    500: '#512aac',
    950: '#000000',
  },
}
SCSS
$custom: #512aac;
$custom-light: #8c68c6;
$custom-dark: #000000;
JSON
{
  "hex": "#512aac",
  "rgb": {
    "r": 81,
    "g": 42,
    "b": 172
  },
  "hsl": {
    "h": 258,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42143,
    "c": 0.19132,
    "h": 289.1
  },
  "luminance": 0.06384
}

Semantic roles & 50–950 ramp

primary
#512AAC
secondary
#AAC46D
accent
#E444B4
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #512AAC

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

Preview Lab → · Contrast checker → · Palette generator →

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