#512496#512496

#512496 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.173 H 295.2°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#512496
RGBrgb(81, 36, 150)
HSLhsl(264, 61%, 36%)
HSVhsv(264, 76%, 59%)
CMYKcmyk(46%, 76%, 0%, 41.2%)
CIE-LABlab(27.33, 45.49, -54.49)
CIE-LCHlch(27.33, 70.98, 309.86°)
OKLaboklab(39.4% 0.0735 -0.1561)
OKLCHoklch(39.4% 0.173 295.2)
XYZxyz(9.5278, 5.2128, 29.3524)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512496 #699624
analogous
#243096 #512496 #8A2496
triadic
#512496 #965124 #249651
tetradic
#512496 #962430 #699624 #24968A
square
#512496 #962430 #699624 #24968A
split-complementary
#512496 #968A24 #309624
monochromatic
#1C0C33 #361865 #512496 #6C30C7 #8D5CD8

Accessibility & contrast

On white

10.28
#512496 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#512496 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512496
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512496#FFFFFF#000000##FFFFFF
##5124961.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004199
Deuteranopia (green-blind)
#003F94
Tritanopia (blue-blind)
#3E425B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #512496;
/* rgb */ color: rgb(81, 36, 150);
/* oklch */ color: oklch(39.4% 0.173 295.2);
Tailwind
colors: {
  custom: {
    50: '#8964b6',
    500: '#512496',
    950: '#000000',
  },
}
SCSS
$custom: #512496;
$custom-light: #8964b6;
$custom-dark: #000000;
JSON
{
  "hex": "#512496",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 150
  },
  "hsl": {
    "h": 263.684,
    "s": 61.29,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39401,
    "c": 0.17255,
    "h": 295.2
  },
  "luminance": 0.05213
}

Semantic roles & 50–950 ramp

primary
#512496
secondary
#95BD59
accent
#E443A5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512496

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

Preview Lab → · Contrast checker → · Palette generator →

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