#512E93#512E93

#512E93 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.5% C 0.157 H 294.2°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#512E93
RGBrgb(81, 46, 147)
HSLhsl(261, 52%, 38%)
HSVhsv(261, 69%, 58%)
CMYKcmyk(44.9%, 68.7%, 0%, 42.4%)
CIE-LABlab(28.93, 39.49, -50.04)
CIE-LCHlch(28.93, 63.75, 308.28°)
OKLaboklab(40.45% 0.0643 -0.1431)
OKLCHoklch(40.45% 0.157 294.2)
XYZxyz(9.6354, 5.8096, 28.2118)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512E93 #70932E
analogous
#2E3D93 #512E93 #832E93
triadic
#512E93 #93512E #2E9351
tetradic
#512E93 #932E3D #70932E #2E9383
square
#512E93 #932E3D #70932E #2E9383
split-complementary
#512E93 #93832E #3D932E
monochromatic
#1E1136 #371F64 #512E93 #6B3DC2 #8E6BD1

Accessibility & contrast

On white

9.71
#512E93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#512E93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512E93
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512E93#FFFFFF#000000##FFFFFF
##512E931.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.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: #512e93;
/* rgb */ color: rgb(81, 46, 147);
/* oklch */ color: oklch(40.5% 0.157 294.2);
Tailwind
colors: {
  custom: {
    50: '#8869b3',
    500: '#512e93',
    950: '#000000',
  },
}
SCSS
$custom: #512e93;
$custom-light: #8869b3;
$custom-dark: #000000;
JSON
{
  "hex": "#512e93",
  "rgb": {
    "r": 81,
    "g": 46,
    "b": 147
  },
  "hsl": {
    "h": 260.792,
    "s": 52.332,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40454,
    "c": 0.15686,
    "h": 294.2
  },
  "luminance": 0.0581
}

Semantic roles & 50–950 ramp

primary
#512E93
secondary
#9BB865
accent
#DC4CAA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512E93

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

Preview Lab → · Contrast checker → · Palette generator →

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