#512D95#512D95

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

Color values

HEX#512D95
RGBrgb(81, 45, 149)
HSLhsl(261, 54%, 38%)
HSVhsv(261, 70%, 58%)
CMYKcmyk(45.6%, 69.8%, 0%, 41.6%)
CIE-LABlab(28.89, 40.60, -51.33)
CIE-LCHlch(28.89, 65.45, 308.35°)
OKLaboklab(40.48% 0.065 -0.1469)
OKLCHoklch(40.48% 0.161 293.9)
XYZxyz(9.7551, 5.7958, 29.0327)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512D95 #71952D
analogous
#2D3D95 #512D95 #852D95
triadic
#512D95 #95512D #2D9551
tetradic
#512D95 #952D3D #71952D #2D9585
square
#512D95 #952D3D #71952D #2D9585
split-complementary
#512D95 #95852D #3D952D
monochromatic
#1E1137 #371F66 #512D95 #6B3BC4 #8E6AD2

Accessibility & contrast

On white

9.73
#512D95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512D95
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512D95#FFFFFF#000000##FFFFFF
##512D951.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004598
Deuteranopia (green-blind)
#004293
Tritanopia (blue-blind)
#3E475D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #512d95;
/* rgb */ color: rgb(81, 45, 149);
/* oklch */ color: oklch(40.5% 0.161 293.9);
Tailwind
colors: {
  custom: {
    50: '#8869b5',
    500: '#512d95',
    950: '#000000',
  },
}
SCSS
$custom: #512d95;
$custom-light: #8869b5;
$custom-dark: #000000;
JSON
{
  "hex": "#512d95",
  "rgb": {
    "r": 81,
    "g": 45,
    "b": 149
  },
  "hsl": {
    "h": 260.769,
    "s": 53.608,
    "l": 38.039
  },
  "oklch": {
    "l": 0.4048,
    "c": 0.16062,
    "h": 293.9
  },
  "luminance": 0.05796
}

Semantic roles & 50–950 ramp

primary
#512D95
secondary
#9CB965
accent
#DD4BAA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512D95

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

Preview Lab → · Contrast checker → · Palette generator →

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