#512D90#512D90

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

Color values

HEX#512D90
RGBrgb(81, 45, 144)
HSLhsl(262, 52%, 37%)
HSVhsv(262, 69%, 56%)
CMYKcmyk(43.8%, 68.7%, 0%, 43.5%)
CIE-LABlab(28.48, 39.19, -48.92)
CIE-LCHlch(28.48, 62.68, 308.70°)
OKLaboklab(40.06% 0.0658 -0.1398)
OKLCHoklch(40.06% 0.154 295.2)
XYZxyz(9.3644, 5.6395, 26.9753)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512D90 #6C902D
analogous
#2D3B90 #512D90 #832D90
triadic
#512D90 #90512D #2D9051
tetradic
#512D90 #902D3B #6C902D #2D9083
square
#512D90 #902D3B #6C902D #2D9083
split-complementary
#512D90 #90832D #3B902D
monochromatic
#1D1033 #371E61 #512D90 #6B3CBF #8E68D0

Accessibility & contrast

On white

9.87
#512D90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512D90
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512D90#FFFFFF#000000##FFFFFF
##512D901.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004493
Deuteranopia (green-blind)
#00428E
Tritanopia (blue-blind)
#40455A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #512d90;
/* rgb */ color: rgb(81, 45, 144);
/* oklch */ color: oklch(40.1% 0.154 295.2);
Tailwind
colors: {
  custom: {
    50: '#8768b1',
    500: '#512d90',
    950: '#000000',
  },
}
SCSS
$custom: #512d90;
$custom-light: #8768b1;
$custom-dark: #000000;
JSON
{
  "hex": "#512d90",
  "rgb": {
    "r": 81,
    "g": 45,
    "b": 144
  },
  "hsl": {
    "h": 261.818,
    "s": 52.381,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40061,
    "c": 0.15448,
    "h": 295.2
  },
  "luminance": 0.0564
}

Semantic roles & 50–950 ramp

primary
#512D90
secondary
#98B662
accent
#DC4CA8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512D90

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

Preview Lab → · Contrast checker → · Palette generator →

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