#512BAE#512BAE

#512BAE is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.5% C 0.193 H 288.6°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#512BAE
RGBrgb(81, 43, 174)
HSLhsl(257, 60%, 43%)
HSVhsv(257, 75%, 68%)
CMYKcmyk(53.4%, 75.3%, 0%, 31.8%)
CIE-LABlab(30.72, 48.73, -63.49)
CIE-LCHlch(30.72, 80.03, 307.51°)
OKLaboklab(42.45% 0.0614 -0.1825)
OKLCHoklch(42.45% 0.193 288.6)
XYZxyz(11.8950, 6.5325, 40.6703)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512BAE #88AE2B
analogous
#2B46AE #512BAE #932BAE
triadic
#512BAE #AE512B #2BAE51
tetradic
#512BAE #AE2B46 #88AE2B #2BAE93
square
#512BAE #AE2B46 #88AE2B #2BAE93
split-complementary
#512BAE #AE932B #46AE2B
monochromatic
#23134C #3A1F7D #512BAE #6E45D1 #9476DD

Accessibility & contrast

On white

9.10
#512BAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#512BAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512BAE
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512BAE#FFFFFF#000000##FFFFFF
##512BAE1.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB2
Deuteranopia (green-blind)
#0045AC
Tritanopia (blue-blind)
#2D4F6B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #512bae;
/* rgb */ color: rgb(81, 43, 174);
/* oklch */ color: oklch(42.5% 0.193 288.6);
Tailwind
colors: {
  custom: {
    50: '#8c69c7',
    500: '#512bae',
    950: '#000000',
  },
}
SCSS
$custom: #512bae;
$custom-light: #8c69c7;
$custom-dark: #000000;
JSON
{
  "hex": "#512bae",
  "rgb": {
    "r": 81,
    "g": 43,
    "b": 174
  },
  "hsl": {
    "h": 257.405,
    "s": 60.369,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42452,
    "c": 0.19259,
    "h": 288.6
  },
  "luminance": 0.06533
}

Semantic roles & 50–950 ramp

primary
#512BAE
secondary
#ACC570
accent
#E444B5
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #512BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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