#512BA3#512BA3

#512BA3 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.4% C 0.180 H 290.9°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#512BA3
RGBrgb(81, 43, 163)
HSLhsl(259, 58%, 40%)
HSVhsv(259, 74%, 64%)
CMYKcmyk(50.3%, 73.6%, 0%, 36.1%)
CIE-LABlab(29.72, 45.62, -58.51)
CIE-LCHlch(29.72, 74.19, 307.94°)
OKLaboklab(41.44% 0.0641 -0.168)
OKLCHoklch(41.44% 0.18 290.9)
XYZxyz(10.8662, 6.1210, 35.2522)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512BA3 #7DA32B
analogous
#2B41A3 #512BA3 #8D2BA3
triadic
#512BA3 #A3512B #2BA351
tetradic
#512BA3 #A32B41 #7DA32B #2BA38D
square
#512BA3 #A32B41 #7DA32B #2BA38D
split-complementary
#512BA3 #A38D2B #41A32B
monochromatic
#211142 #391E73 #512BA3 #6C3FCC #916FD9

Accessibility & contrast

On white

9.44
#512BA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#512BA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512BA3
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512BA3#FFFFFF#000000##FFFFFF
##512BA31.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #512ba3;
/* rgb */ color: rgb(81, 43, 163);
/* oklch */ color: oklch(41.4% 0.180 290.9);
Tailwind
colors: {
  custom: {
    50: '#8a68bf',
    500: '#512ba3',
    950: '#000000',
  },
}
SCSS
$custom: #512ba3;
$custom-light: #8a68bf;
$custom-dark: #000000;
JSON
{
  "hex": "#512ba3",
  "rgb": {
    "r": 81,
    "g": 43,
    "b": 163
  },
  "hsl": {
    "h": 259,
    "s": 58.252,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41439,
    "c": 0.17978,
    "h": 290.9
  },
  "luminance": 0.06121
}

Semantic roles & 50–950 ramp

primary
#512BA3
secondary
#A5C06A
accent
#E146B0
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #512BA3

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

Preview Lab → · Contrast checker → · Palette generator →

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