#512B96#512B96

#512B96 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.3% C 0.164 H 294.0°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#512B96
RGBrgb(81, 43, 150)
HSLhsl(261, 55%, 38%)
HSVhsv(261, 71%, 59%)
CMYKcmyk(46%, 71.3%, 0%, 41.2%)
CIE-LABlab(28.59, 41.96, -52.44)
CIE-LCHlch(28.59, 67.16, 308.67°)
OKLaboklab(40.29% 0.0669 -0.1501)
OKLCHoklch(40.29% 0.164 294)
XYZxyz(9.7607, 5.6788, 29.4301)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512B96 #70962B
analogous
#2B3B96 #512B96 #862B96
triadic
#512B96 #96512B #2B9651
tetradic
#512B96 #962B3B #70962B #2B9686
square
#512B96 #962B3B #70962B #2B9686
split-complementary
#512B96 #96862B #3B962B
monochromatic
#1E1037 #371D66 #512B96 #6B39C6 #8E68D4

Accessibility & contrast

On white

9.83
#512B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#512B96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512B96
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512B96#FFFFFF#000000##FFFFFF
##512B961.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004599
Deuteranopia (green-blind)
#004294
Tritanopia (blue-blind)
#3D465D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #512b96;
/* rgb */ color: rgb(81, 43, 150);
/* oklch */ color: oklch(40.3% 0.164 294.0);
Tailwind
colors: {
  custom: {
    50: '#8868b6',
    500: '#512b96',
    950: '#000000',
  },
}
SCSS
$custom: #512b96;
$custom-light: #8868b6;
$custom-dark: #000000;
JSON
{
  "hex": "#512b96",
  "rgb": {
    "r": 81,
    "g": 43,
    "b": 150
  },
  "hsl": {
    "h": 261.308,
    "s": 55.44,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40289,
    "c": 0.16434,
    "h": 294
  },
  "luminance": 0.05679
}

Semantic roles & 50–950 ramp

primary
#512B96
secondary
#9BBA63
accent
#DF49AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512B96

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

Preview Lab → · Contrast checker → · Palette generator →

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