#512C93#512C93

#512C93 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.2% C 0.159 H 294.6°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#512C93
RGBrgb(81, 44, 147)
HSLhsl(262, 54%, 37%)
HSVhsv(262, 70%, 58%)
CMYKcmyk(44.9%, 70.1%, 0%, 42.4%)
CIE-LABlab(28.53, 40.58, -50.69)
CIE-LCHlch(28.53, 64.93, 308.68°)
OKLaboklab(40.17% 0.0664 -0.145)
OKLCHoklch(40.17% 0.159 294.6)
XYZxyz(9.5591, 5.6570, 28.1864)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512C93 #6E932C
analogous
#2C3B93 #512C93 #842C93
triadic
#512C93 #93512C #2C9351
tetradic
#512C93 #932C3B #6E932C #2C9384
square
#512C93 #932C3B #6E932C #2C9384
split-complementary
#512C93 #93842C #3B932C
monochromatic
#1D1035 #371E64 #512C93 #6B3AC2 #8E68D2

Accessibility & contrast

On white

9.85
#512C93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512C93
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512C93#FFFFFF#000000##FFFFFF
##512C931.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004496
Deuteranopia (green-blind)
#004291
Tritanopia (blue-blind)
#3F455C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #512c93;
/* rgb */ color: rgb(81, 44, 147);
/* oklch */ color: oklch(40.2% 0.159 294.6);
Tailwind
colors: {
  custom: {
    50: '#8868b3',
    500: '#512c93',
    950: '#000000',
  },
}
SCSS
$custom: #512c93;
$custom-light: #8868b3;
$custom-dark: #000000;
JSON
{
  "hex": "#512c93",
  "rgb": {
    "r": 81,
    "g": 44,
    "b": 147
  },
  "hsl": {
    "h": 261.553,
    "s": 53.927,
    "l": 37.451
  },
  "oklch": {
    "l": 0.4017,
    "c": 0.15946,
    "h": 294.6
  },
  "luminance": 0.05657
}

Semantic roles & 50–950 ramp

primary
#512C93
secondary
#99B863
accent
#DD4AA9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512C93

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

Preview Lab → · Contrast checker → · Palette generator →

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