#512AA3#512AA3

#512AA3 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.181 H 291.1°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#512AA3
RGBrgb(81, 42, 163)
HSLhsl(259, 59%, 40%)
HSVhsv(259, 74%, 64%)
CMYKcmyk(50.3%, 74.2%, 0%, 36.1%)
CIE-LABlab(29.54, 46.13, -58.81)
CIE-LCHlch(29.54, 74.74, 308.11°)
OKLaboklab(41.31% 0.065 -0.1688)
OKLCHoklch(41.31% 0.181 291.1)
XYZxyz(10.8303, 6.0492, 35.2402)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512AA3 #7CA32A
analogous
#2A3FA3 #512AA3 #8D2AA3
triadic
#512AA3 #A3512A #2AA351
tetradic
#512AA3 #A32A3F #7CA32A #2AA38D
square
#512AA3 #A32A3F #7CA32A #2AA38D
split-complementary
#512AA3 #A38D2A #3FA32A
monochromatic
#211142 #391D72 #512AA3 #6C3DCD #916EDA

Accessibility & contrast

On white

9.50
#512AA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#512AA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512AA3
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512AA3#FFFFFF#000000##FFFFFF
##512AA31.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A6
Deuteranopia (green-blind)
#0043A1
Tritanopia (blue-blind)
#354A64
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #512aa3;
/* rgb */ color: rgb(81, 42, 163);
/* oklch */ color: oklch(41.3% 0.181 291.1);
Tailwind
colors: {
  custom: {
    50: '#8a67bf',
    500: '#512aa3',
    950: '#000000',
  },
}
SCSS
$custom: #512aa3;
$custom-light: #8a67bf;
$custom-dark: #000000;
JSON
{
  "hex": "#512aa3",
  "rgb": {
    "r": 81,
    "g": 42,
    "b": 163
  },
  "hsl": {
    "h": 259.339,
    "s": 59.024,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41312,
    "c": 0.18088,
    "h": 291.1
  },
  "luminance": 0.0605
}

Semantic roles & 50–950 ramp

primary
#512AA3
secondary
#A4C068
accent
#E246B0
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #512AA3

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

Preview Lab → · Contrast checker → · Palette generator →

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