#512EA3#512EA3

#512EA3 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.8% C 0.176 H 290.4°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#512EA3
RGBrgb(81, 46, 163)
HSLhsl(258, 56%, 41%)
HSVhsv(258, 72%, 64%)
CMYKcmyk(50.3%, 71.8%, 0%, 36.1%)
CIE-LABlab(30.27, 44.06, -57.60)
CIE-LCHlch(30.27, 72.52, 307.41°)
OKLaboklab(41.83% 0.0614 -0.1653)
OKLCHoklch(41.83% 0.176 290.4)
XYZxyz(10.9793, 6.3472, 35.2899)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512EA3 #80A32E
analogous
#2E45A3 #512EA3 #8B2EA3
triadic
#512EA3 #A3512E #2EA351
tetradic
#512EA3 #A32E45 #80A32E #2EA38B
square
#512EA3 #A32E45 #80A32E #2EA38B
split-complementary
#512EA3 #A38B2E #45A32E
monochromatic
#221344 #392173 #512EA3 #6C44CA #9274D8

Accessibility & contrast

On white

9.25
#512EA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#512EA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512EA3
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512EA3#FFFFFF#000000##FFFFFF
##512EA31.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A6
Deuteranopia (green-blind)
#0045A1
Tritanopia (blue-blind)
#354C65
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #512ea3;
/* rgb */ color: rgb(81, 46, 163);
/* oklch */ color: oklch(41.8% 0.176 290.4);
Tailwind
colors: {
  custom: {
    50: '#8a6abf',
    500: '#512ea3',
    950: '#000000',
  },
}
SCSS
$custom: #512ea3;
$custom-light: #8a6abf;
$custom-dark: #000000;
JSON
{
  "hex": "#512ea3",
  "rgb": {
    "r": 81,
    "g": 46,
    "b": 163
  },
  "hsl": {
    "h": 257.949,
    "s": 55.981,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41833,
    "c": 0.17633,
    "h": 290.4
  },
  "luminance": 0.06348
}

Semantic roles & 50–950 ramp

primary
#512EA3
secondary
#A7BF6D
accent
#DF49B2
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0712
muted
#7D7A81

Preview Lab

Preview with #512EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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