#512D93#512D93

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

Color values

HEX#512D93
RGBrgb(81, 45, 147)
HSLhsl(261, 53%, 38%)
HSVhsv(261, 69%, 58%)
CMYKcmyk(44.9%, 69.4%, 0%, 42.4%)
CIE-LABlab(28.73, 40.04, -50.37)
CIE-LCHlch(28.73, 64.34, 308.48°)
OKLaboklab(40.31% 0.0653 -0.144)
OKLCHoklch(40.31% 0.158 294.4)
XYZxyz(9.5968, 5.7324, 28.1989)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512D93 #6F932D
analogous
#2D3C93 #512D93 #842D93
triadic
#512D93 #93512D #2D9351
tetradic
#512D93 #932D3C #6F932D #2D9384
square
#512D93 #932D3C #6F932D #2D9384
split-complementary
#512D93 #93842D #3C932D
monochromatic
#1D1035 #371F64 #512D93 #6B3BC2 #8E69D1

Accessibility & contrast

On white

9.78
#512D93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#512D93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512D93
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512D93#FFFFFF#000000##FFFFFF
##512D931.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004596
Deuteranopia (green-blind)
#004291
Tritanopia (blue-blind)
#3F465C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #512d93;
/* rgb */ color: rgb(81, 45, 147);
/* oklch */ color: oklch(40.3% 0.158 294.4);
Tailwind
colors: {
  custom: {
    50: '#8869b3',
    500: '#512d93',
    950: '#000000',
  },
}
SCSS
$custom: #512d93;
$custom-light: #8869b3;
$custom-dark: #000000;
JSON
{
  "hex": "#512d93",
  "rgb": {
    "r": 81,
    "g": 45,
    "b": 147
  },
  "hsl": {
    "h": 261.176,
    "s": 53.125,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40311,
    "c": 0.15817,
    "h": 294.4
  },
  "luminance": 0.05733
}

Semantic roles & 50–950 ramp

primary
#512D93
secondary
#9AB864
accent
#DD4BA9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512D93

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

Preview Lab → · Contrast checker → · Palette generator →

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