#512BA0#512BA0

#512BA0 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.2% C 0.176 H 291.6°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#512BA0
RGBrgb(81, 43, 160)
HSLhsl(259, 58%, 40%)
HSVhsv(259, 73%, 63%)
CMYKcmyk(49.4%, 73.1%, 0%, 37.3%)
CIE-LABlab(29.45, 44.77, -57.13)
CIE-LCHlch(29.45, 72.58, 308.09°)
OKLaboklab(41.17% 0.0648 -0.1639)
OKLCHoklch(41.17% 0.176 291.6)
XYZxyz(10.6006, 6.0148, 33.8533)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512BA0 #7AA02B
analogous
#2B40A0 #512BA0 #8B2BA0
triadic
#512BA0 #A0512B #2BA051
tetradic
#512BA0 #A02B40 #7AA02B #2BA08B
square
#512BA0 #A02B40 #7AA02B #2BA08B
split-complementary
#512BA0 #A08B2B #40A02B
monochromatic
#201140 #391E70 #512BA0 #6B3DCB #906ED8

Accessibility & contrast

On white

9.53
#512BA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#512BA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512BA0
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512BA0#FFFFFF#000000##FFFFFF
##512BA01.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A3
Deuteranopia (green-blind)
#00439E
Tritanopia (blue-blind)
#374A63
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #512ba0;
/* rgb */ color: rgb(81, 43, 160);
/* oklch */ color: oklch(41.2% 0.176 291.6);
Tailwind
colors: {
  custom: {
    50: '#8a68bd',
    500: '#512ba0',
    950: '#000000',
  },
}
SCSS
$custom: #512ba0;
$custom-light: #8a68bd;
$custom-dark: #000000;
JSON
{
  "hex": "#512ba0",
  "rgb": {
    "r": 81,
    "g": 43,
    "b": 160
  },
  "hsl": {
    "h": 259.487,
    "s": 57.635,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41168,
    "c": 0.17624,
    "h": 291.6
  },
  "luminance": 0.06015
}

Semantic roles & 50–950 ramp

primary
#512BA0
secondary
#A3BF68
accent
#E147AF
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #512BA0

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

Preview Lab → · Contrast checker → · Palette generator →

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