#512BAC#512BAC

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

Color values

HEX#512BAC
RGBrgb(81, 43, 172)
HSLhsl(258, 60%, 42%)
HSVhsv(258, 75%, 67%)
CMYKcmyk(52.9%, 75%, 0%, 32.5%)
CIE-LABlab(30.53, 48.16, -62.59)
CIE-LCHlch(30.53, 78.98, 307.58°)
OKLaboklab(42.27% 0.0619 -0.1799)
OKLCHoklch(42.27% 0.19 289)
XYZxyz(11.7014, 6.4551, 39.6511)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512BAC #86AC2B
analogous
#2B46AC #512BAC #912BAC
triadic
#512BAC #AC512B #2BAC51
tetradic
#512BAC #AC2B46 #86AC2B #2BAC91
square
#512BAC #AC2B46 #86AC2B #2BAC91
split-complementary
#512BAC #AC912B #46AC2B
monochromatic
#23134A #3A1F7B #512BAC #6D44D0 #9375DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##512BAC#FFFFFF#000000##FFFFFF
##512BAC1.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)
#004AB0
Deuteranopia (green-blind)
#0045AA
Tritanopia (blue-blind)
#2E4E69
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #512bac;
/* rgb */ color: rgb(81, 43, 172);
/* oklch */ color: oklch(42.3% 0.190 289.0);
Tailwind
colors: {
  custom: {
    50: '#8b68c6',
    500: '#512bac',
    950: '#000000',
  },
}
SCSS
$custom: #512bac;
$custom-light: #8b68c6;
$custom-dark: #000000;
JSON
{
  "hex": "#512bac",
  "rgb": {
    "r": 81,
    "g": 43,
    "b": 172
  },
  "hsl": {
    "h": 257.674,
    "s": 60,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42265,
    "c": 0.19027,
    "h": 289
  },
  "luminance": 0.06456
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #512BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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