#512B94#512B94

#512B94 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.1% C 0.162 H 294.5°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#512B94
RGBrgb(81, 43, 148)
HSLhsl(262, 55%, 37%)
HSVhsv(262, 71%, 58%)
CMYKcmyk(45.3%, 70.9%, 0%, 42%)
CIE-LABlab(28.42, 41.40, -51.48)
CIE-LCHlch(28.42, 66.06, 308.80°)
OKLaboklab(40.12% 0.0672 -0.1473)
OKLCHoklch(40.12% 0.162 294.5)
XYZxyz(9.6011, 5.6149, 28.5892)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512B94 #6E942B
analogous
#2B3A94 #512B94 #852B94
triadic
#512B94 #94512B #2B9451
tetradic
#512B94 #942B3A #6E942B #2B9485
square
#512B94 #942B3A #6E942B #2B9485
split-complementary
#512B94 #94852B #3A942B
monochromatic
#1D0F35 #371D65 #512B94 #6B39C3 #8E67D3

Accessibility & contrast

On white

9.89
#512B94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#512B94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512B94
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512B94#FFFFFF#000000##FFFFFF
##512B941.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004497
Deuteranopia (green-blind)
#004192
Tritanopia (blue-blind)
#3E455C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #512b94;
/* rgb */ color: rgb(81, 43, 148);
/* oklch */ color: oklch(40.1% 0.162 294.5);
Tailwind
colors: {
  custom: {
    50: '#8867b4',
    500: '#512b94',
    950: '#000000',
  },
}
SCSS
$custom: #512b94;
$custom-light: #8867b4;
$custom-dark: #000000;
JSON
{
  "hex": "#512b94",
  "rgb": {
    "r": 81,
    "g": 43,
    "b": 148
  },
  "hsl": {
    "h": 261.714,
    "s": 54.974,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40117,
    "c": 0.16194,
    "h": 294.5
  },
  "luminance": 0.05615
}

Semantic roles & 50–950 ramp

primary
#512B94
secondary
#99B962
accent
#DE49A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512B94

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

Preview Lab → · Contrast checker → · Palette generator →

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