#512084#512084

#512084 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.157 H 301.4°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#512084
RGBrgb(81, 32, 132)
HSLhsl(269, 61%, 32%)
HSVhsv(269, 76%, 52%)
CMYKcmyk(38.6%, 75.8%, 0%, 48.2%)
CIE-LABlab(25.10, 42.63, -46.95)
CIE-LCHlch(25.10, 63.42, 312.24°)
OKLaboklab(37.34% 0.0817 -0.134)
OKLCHoklch(37.34% 0.157 301.4)
XYZxyz(8.0737, 4.4483, 22.2586)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512084 #538420
analogous
#202184 #512084 #832084
triadic
#512084 #845120 #208451
tetradic
#512084 #842021 #538420 #208483
square
#512084 #842021 #538420 #208483
split-complementary
#512084 #848320 #218420
monochromatic
#150821 #331453 #512084 #6F2CB5 #8E4BD3

Accessibility & contrast

On white

11.11
#512084 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#512084 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512084
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512084#FFFFFF#000000##FFFFFF
##5120841.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B87
Deuteranopia (green-blind)
#003B82
Tritanopia (blue-blind)
#463950
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #512084;
/* rgb */ color: rgb(81, 32, 132);
/* oklch */ color: oklch(37.3% 0.157 301.4);
Tailwind
colors: {
  custom: {
    50: '#8761a9',
    500: '#512084',
    950: '#000000',
  },
}
SCSS
$custom: #512084;
$custom-light: #8761a9;
$custom-dark: #000000;
JSON
{
  "hex": "#512084",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 132
  },
  "hsl": {
    "h": 269.4,
    "s": 60.976,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37343,
    "c": 0.15688,
    "h": 301.4
  },
  "luminance": 0.04448
}

Semantic roles & 50–950 ramp

primary
#512084
secondary
#81B64A
accent
#E44496
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #512084

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

Preview Lab → · Contrast checker → · Palette generator →

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