#512CAE#512CAE

#512CAE is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.6% C 0.192 H 288.4°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#512CAE
RGBrgb(81, 44, 174)
HSLhsl(257, 60%, 43%)
HSVhsv(257, 75%, 68%)
CMYKcmyk(53.4%, 74.7%, 0%, 31.8%)
CIE-LABlab(30.89, 48.23, -63.20)
CIE-LCHlch(30.89, 79.50, 307.35°)
OKLaboklab(42.58% 0.0606 -0.1817)
OKLCHoklch(42.58% 0.192 288.4)
XYZxyz(11.9318, 6.6061, 40.6826)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512CAE #89AE2C
analogous
#2C48AE #512CAE #922CAE
triadic
#512CAE #AE512C #2CAE51
tetradic
#512CAE #AE2C48 #89AE2C #2CAE92
square
#512CAE #AE2C48 #89AE2C #2CAE92
split-complementary
#512CAE #AE922C #48AE2C
monochromatic
#24134C #3A207D #512CAE #6E47D0 #9478DD

Accessibility & contrast

On white

9.05
#512CAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#512CAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512CAE
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512CAE#FFFFFF#000000##FFFFFF
##512CAE1.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #512cae;
/* rgb */ color: rgb(81, 44, 174);
/* oklch */ color: oklch(42.6% 0.192 288.4);
Tailwind
colors: {
  custom: {
    50: '#8c69c7',
    500: '#512cae',
    950: '#000000',
  },
}
SCSS
$custom: #512cae;
$custom-light: #8c69c7;
$custom-dark: #000000;
JSON
{
  "hex": "#512cae",
  "rgb": {
    "r": 81,
    "g": 44,
    "b": 174
  },
  "hsl": {
    "h": 257.077,
    "s": 59.633,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42575,
    "c": 0.19155,
    "h": 288.4
  },
  "luminance": 0.06607
}

Semantic roles & 50–950 ramp

primary
#512CAE
secondary
#ADC571
accent
#E345B6
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #512CAE

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

Preview Lab → · Contrast checker → · Palette generator →

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