#512CA1#512CA1

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

Color values

HEX#512CA1
RGBrgb(81, 44, 161)
HSLhsl(259, 57%, 40%)
HSVhsv(259, 73%, 63%)
CMYKcmyk(49.7%, 72.7%, 0%, 36.9%)
CIE-LABlab(29.72, 44.54, -57.29)
CIE-LCHlch(29.72, 72.57, 307.86°)
OKLaboklab(41.39% 0.0637 -0.1644)
OKLCHoklch(41.39% 0.176 291.2)
XYZxyz(10.7252, 6.1235, 34.3281)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512CA1 #7CA12C
analogous
#2C42A1 #512CA1 #8B2CA1
triadic
#512CA1 #A1512C #2CA151
tetradic
#512CA1 #A12C42 #7CA12C #2CA18B
square
#512CA1 #A12C42 #7CA12C #2CA18B
split-complementary
#512CA1 #A18B2C #42A12C
monochromatic
#211241 #391F71 #512CA1 #6C40CB #9170D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##512CA1#FFFFFF#000000##FFFFFF
##512CA11.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)
#0048A4
Deuteranopia (green-blind)
#00439F
Tritanopia (blue-blind)
#374B64
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #512ca1;
/* rgb */ color: rgb(81, 44, 161);
/* oklch */ color: oklch(41.4% 0.176 291.2);
Tailwind
colors: {
  custom: {
    50: '#8a69be',
    500: '#512ca1',
    950: '#000000',
  },
}
SCSS
$custom: #512ca1;
$custom-light: #8a69be;
$custom-dark: #000000;
JSON
{
  "hex": "#512ca1",
  "rgb": {
    "r": 81,
    "g": 44,
    "b": 161
  },
  "hsl": {
    "h": 258.974,
    "s": 57.073,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41388,
    "c": 0.17628,
    "h": 291.2
  },
  "luminance": 0.06124
}

Semantic roles & 50–950 ramp

primary
#512CA1
secondary
#A4BF6A
accent
#E047B0
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #512CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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