#512494#512494

#512494 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.170 H 295.8°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#512494
RGBrgb(81, 36, 148)
HSLhsl(264, 61%, 36%)
HSVhsv(264, 76%, 58%)
CMYKcmyk(45.3%, 75.7%, 0%, 42%)
CIE-LABlab(27.16, 44.95, -53.55)
CIE-LCHlch(27.16, 69.91, 310.01°)
OKLaboklab(39.22% 0.074 -0.1533)
OKLCHoklch(39.22% 0.17 295.8)
XYZxyz(9.3681, 5.1490, 28.5115)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512494 #679424
analogous
#242F94 #512494 #892494
triadic
#512494 #945124 #249451
tetradic
#512494 #94242F #679424 #249489
square
#512494 #94242F #679424 #249489
split-complementary
#512494 #948924 #2F9424
monochromatic
#1B0C32 #361863 #512494 #6C30C5 #8D5BD7

Accessibility & contrast

On white

10.35
#512494 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#512494 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512494
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512494#FFFFFF#000000##FFFFFF
##5124941.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004197
Deuteranopia (green-blind)
#003F92
Tritanopia (blue-blind)
#3F425A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #512494;
/* rgb */ color: rgb(81, 36, 148);
/* oklch */ color: oklch(39.2% 0.170 295.8);
Tailwind
colors: {
  custom: {
    50: '#8963b4',
    500: '#512494',
    950: '#000000',
  },
}
SCSS
$custom: #512494;
$custom-light: #8963b4;
$custom-dark: #000000;
JSON
{
  "hex": "#512494",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 148
  },
  "hsl": {
    "h": 264.107,
    "s": 60.87,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39221,
    "c": 0.17028,
    "h": 295.8
  },
  "luminance": 0.05149
}

Semantic roles & 50–950 ramp

primary
#512494
secondary
#94BC58
accent
#E444A4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512494

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

Preview Lab → · Contrast checker → · Palette generator →

#512494 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva