#512C92#512C92

#512C92 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.1% C 0.158 H 294.9°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#512C92
RGBrgb(81, 44, 146)
HSLhsl(262, 54%, 37%)
HSVhsv(262, 70%, 57%)
CMYKcmyk(44.5%, 69.9%, 0%, 42.7%)
CIE-LABlab(28.45, 40.30, -50.21)
CIE-LCHlch(28.45, 64.38, 308.75°)
OKLaboklab(40.09% 0.0665 -0.1436)
OKLCHoklch(40.09% 0.158 294.9)
XYZxyz(9.4809, 5.6258, 27.7749)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512C92 #6D922C
analogous
#2C3A92 #512C92 #842C92
triadic
#512C92 #92512C #2C9251
tetradic
#512C92 #922C3A #6D922C #2C9284
square
#512C92 #922C3A #6D922C #2C9284
split-complementary
#512C92 #92842C #3A922C
monochromatic
#1D1034 #371E63 #512C92 #6B3AC1 #8E67D1

Accessibility & contrast

On white

9.88
#512C92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512C92
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512C92#FFFFFF#000000##FFFFFF
##512C921.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004495
Deuteranopia (green-blind)
#004190
Tritanopia (blue-blind)
#3F455B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #512c92;
/* rgb */ color: rgb(81, 44, 146);
/* oklch */ color: oklch(40.1% 0.158 294.9);
Tailwind
colors: {
  custom: {
    50: '#8868b3',
    500: '#512c92',
    950: '#000000',
  },
}
SCSS
$custom: #512c92;
$custom-light: #8868b3;
$custom-dark: #000000;
JSON
{
  "hex": "#512c92",
  "rgb": {
    "r": 81,
    "g": 44,
    "b": 146
  },
  "hsl": {
    "h": 261.765,
    "s": 53.684,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40086,
    "c": 0.15825,
    "h": 294.9
  },
  "luminance": 0.05626
}

Semantic roles & 50–950 ramp

primary
#512C92
secondary
#99B862
accent
#DD4BA8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512C92

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

Preview Lab → · Contrast checker → · Palette generator →

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