#512E95#512E95

#512E95 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.6% C 0.159 H 293.7°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#512E95
RGBrgb(81, 46, 149)
HSLhsl(260, 53%, 38%)
HSVhsv(260, 69%, 58%)
CMYKcmyk(45.6%, 69.1%, 0%, 41.6%)
CIE-LABlab(29.09, 40.06, -51.01)
CIE-LCHlch(29.09, 64.85, 308.14°)
OKLaboklab(40.62% 0.064 -0.1459)
OKLCHoklch(40.62% 0.159 293.7)
XYZxyz(9.7937, 5.8730, 29.0455)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512E95 #72952E
analogous
#2E3E95 #512E95 #842E95
triadic
#512E95 #95512E #2E9551
tetradic
#512E95 #952E3E #72952E #2E9584
square
#512E95 #952E3E #72952E #2E9584
split-complementary
#512E95 #95842E #3E952E
monochromatic
#1E1137 #382066 #512E95 #6B3DC3 #8E6CD2

Accessibility & contrast

On white

9.66
#512E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#512E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512E95
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512E95#FFFFFF#000000##FFFFFF
##512E951.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004698
Deuteranopia (green-blind)
#004393
Tritanopia (blue-blind)
#3E475D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #512e95;
/* rgb */ color: rgb(81, 46, 149);
/* oklch */ color: oklch(40.6% 0.159 293.7);
Tailwind
colors: {
  custom: {
    50: '#8869b5',
    500: '#512e95',
    950: '#000000',
  },
}
SCSS
$custom: #512e95;
$custom-light: #8869b5;
$custom-dark: #000000;
JSON
{
  "hex": "#512e95",
  "rgb": {
    "r": 81,
    "g": 46,
    "b": 149
  },
  "hsl": {
    "h": 260.388,
    "s": 52.821,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40622,
    "c": 0.15933,
    "h": 293.7
  },
  "luminance": 0.05873
}

Semantic roles & 50–950 ramp

primary
#512E95
secondary
#9DB966
accent
#DC4CAB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512E95

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

Preview Lab → · Contrast checker → · Palette generator →

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