#512BAD#512BAD

#512BAD is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.4% C 0.191 H 288.8°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#512BAD
RGBrgb(81, 43, 173)
HSLhsl(258, 60%, 42%)
HSVhsv(258, 75%, 68%)
CMYKcmyk(53.2%, 75.1%, 0%, 32.2%)
CIE-LABlab(30.63, 48.44, -63.04)
CIE-LCHlch(30.63, 79.50, 307.54°)
OKLaboklab(42.36% 0.0617 -0.1812)
OKLCHoklch(42.36% 0.191 288.8)
XYZxyz(11.7978, 6.4937, 40.1588)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512BAD #87AD2B
analogous
#2B46AD #512BAD #922BAD
triadic
#512BAD #AD512B #2BAD51
tetradic
#512BAD #AD2B46 #87AD2B #2BAD92
square
#512BAD #AD2B46 #87AD2B #2BAD92
split-complementary
#512BAD #AD922B #46AD2B
monochromatic
#23134B #3A1F7C #512BAD #6D45D1 #9476DD

Accessibility & contrast

On white

9.14
#512BAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#512BAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512BAD
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512BAD#FFFFFF#000000##FFFFFF
##512BAD1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB1
Deuteranopia (green-blind)
#0045AB
Tritanopia (blue-blind)
#2D4F6A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #512bad;
/* rgb */ color: rgb(81, 43, 173);
/* oklch */ color: oklch(42.4% 0.191 288.8);
Tailwind
colors: {
  custom: {
    50: '#8c69c7',
    500: '#512bad',
    950: '#000000',
  },
}
SCSS
$custom: #512bad;
$custom-light: #8c69c7;
$custom-dark: #000000;
JSON
{
  "hex": "#512bad",
  "rgb": {
    "r": 81,
    "g": 43,
    "b": 173
  },
  "hsl": {
    "h": 257.538,
    "s": 60.185,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42358,
    "c": 0.19143,
    "h": 288.8
  },
  "luminance": 0.06494
}

Semantic roles & 50–950 ramp

primary
#512BAD
secondary
#ACC46F
accent
#E344B5
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #512BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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