#512184#512184

#512184 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.156 H 301.2°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#512184
RGBrgb(81, 33, 132)
HSLhsl(269, 60%, 32%)
HSVhsv(269, 75%, 52%)
CMYKcmyk(38.6%, 75%, 0%, 48.2%)
CIE-LABlab(25.27, 42.16, -46.68)
CIE-LCHlch(25.27, 62.90, 312.09°)
OKLaboklab(37.46% 0.0807 -0.1331)
OKLCHoklch(37.46% 0.156 301.2)
XYZxyz(8.1010, 4.5029, 22.2677)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512184 #548421
analogous
#212284 #512184 #832184
triadic
#512184 #845121 #218451
tetradic
#512184 #842122 #548421 #218483
square
#512184 #842122 #548421 #218483
split-complementary
#512184 #848321 #228421
monochromatic
#150922 #331553 #512184 #6F2DB5 #8E4DD2

Accessibility & contrast

On white

11.05
#512184 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#512184 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512184
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512184#FFFFFF#000000##FFFFFF
##5121841.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #512184;
/* rgb */ color: rgb(81, 33, 132);
/* oklch */ color: oklch(37.5% 0.156 301.2);
Tailwind
colors: {
  custom: {
    50: '#8761a9',
    500: '#512184',
    950: '#000000',
  },
}
SCSS
$custom: #512184;
$custom-light: #8761a9;
$custom-dark: #000000;
JSON
{
  "hex": "#512184",
  "rgb": {
    "r": 81,
    "g": 33,
    "b": 132
  },
  "hsl": {
    "h": 269.091,
    "s": 60,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37462,
    "c": 0.15567,
    "h": 301.2
  },
  "luminance": 0.04503
}

Semantic roles & 50–950 ramp

primary
#512184
secondary
#82B64B
accent
#E34596
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #512184

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

Preview Lab → · Contrast checker → · Palette generator →

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