#512BA2#512BA2

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

Color values

HEX#512BA2
RGBrgb(81, 43, 162)
HSLhsl(259, 58%, 40%)
HSVhsv(259, 73%, 64%)
CMYKcmyk(50%, 73.5%, 0%, 36.5%)
CIE-LABlab(29.63, 45.34, -58.05)
CIE-LCHlch(29.63, 73.66, 307.99°)
OKLaboklab(41.35% 0.0643 -0.1666)
OKLCHoklch(41.35% 0.179 291.1)
XYZxyz(10.7770, 6.0853, 34.7822)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512BA2 #7CA22B
analogous
#2B40A2 #512BA2 #8D2BA2
triadic
#512BA2 #A2512B #2BA251
tetradic
#512BA2 #A22B40 #7CA22B #2BA28D
square
#512BA2 #A22B40 #7CA22B #2BA28D
split-complementary
#512BA2 #A28D2B #40A22B
monochromatic
#211141 #391E72 #512BA2 #6C3ECC #916FD9

Accessibility & contrast

On white

9.47
#512BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512BA2
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512BA2#FFFFFF#000000##FFFFFF
##512BA21.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A5
Deuteranopia (green-blind)
#0043A0
Tritanopia (blue-blind)
#364A64
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #512ba2;
/* rgb */ color: rgb(81, 43, 162);
/* oklch */ color: oklch(41.3% 0.179 291.1);
Tailwind
colors: {
  custom: {
    50: '#8a68bf',
    500: '#512ba2',
    950: '#000000',
  },
}
SCSS
$custom: #512ba2;
$custom-light: #8a68bf;
$custom-dark: #000000;
JSON
{
  "hex": "#512ba2",
  "rgb": {
    "r": 81,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 259.16,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41348,
    "c": 0.1786,
    "h": 291.1
  },
  "luminance": 0.06086
}

Semantic roles & 50–950 ramp

primary
#512BA2
secondary
#A4C069
accent
#E147B0
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #512BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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