#512B95#512B95

#512B95 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.2% C 0.163 H 294.3°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#512B95
RGBrgb(81, 43, 149)
HSLhsl(262, 55%, 38%)
HSVhsv(262, 71%, 58%)
CMYKcmyk(45.6%, 71.1%, 0%, 41.6%)
CIE-LABlab(28.50, 41.68, -51.96)
CIE-LCHlch(28.50, 66.61, 308.73°)
OKLaboklab(40.2% 0.0671 -0.1487)
OKLCHoklch(40.2% 0.163 294.3)
XYZxyz(9.6806, 5.6467, 29.0078)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512B95 #6F952B
analogous
#2B3A95 #512B95 #862B95
triadic
#512B95 #95512B #2B9551
tetradic
#512B95 #952B3A #6F952B #2B9586
square
#512B95 #952B3A #6F952B #2B9586
split-complementary
#512B95 #95862B #3A952B
monochromatic
#1D1036 #371D66 #512B95 #6B39C4 #8E67D3

Accessibility & contrast

On white

9.86
#512B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#512B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512B95
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512B95#FFFFFF#000000##FFFFFF
##512B951.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004498
Deuteranopia (green-blind)
#004193
Tritanopia (blue-blind)
#3E465D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #512b95;
/* rgb */ color: rgb(81, 43, 149);
/* oklch */ color: oklch(40.2% 0.163 294.3);
Tailwind
colors: {
  custom: {
    50: '#8867b5',
    500: '#512b95',
    950: '#000000',
  },
}
SCSS
$custom: #512b95;
$custom-light: #8867b5;
$custom-dark: #000000;
JSON
{
  "hex": "#512b95",
  "rgb": {
    "r": 81,
    "g": 43,
    "b": 149
  },
  "hsl": {
    "h": 261.509,
    "s": 55.208,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40203,
    "c": 0.16315,
    "h": 294.3
  },
  "luminance": 0.05647
}

Semantic roles & 50–950 ramp

primary
#512B95
secondary
#9ABA62
accent
#DF49A9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512B95

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

Preview Lab → · Contrast checker → · Palette generator →

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