#512576#512576

#512576 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.8% C 0.134 H 305.7°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#512576
RGBrgb(81, 37, 118)
HSLhsl(273, 52%, 30%)
HSVhsv(273, 69%, 46%)
CMYKcmyk(31.4%, 68.6%, 0%, 53.7%)
CIE-LABlab(24.89, 36.51, -38.44)
CIE-LCHlch(24.89, 53.01, 313.53°)
OKLaboklab(36.85% 0.0784 -0.1089)
OKLCHoklch(36.85% 0.134 305.7)
XYZxyz(7.3242, 4.3805, 17.5957)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512576 #4A7625
analogous
#292576 #512576 #762572
triadic
#512576 #765125 #257651
tetradic
#512576 #762925 #4A7625 #257276
square
#512576 #762925 #4A7625 #257276
split-complementary
#512576 #727625 #257629
monochromatic
#110819 #311647 #512576 #7134A5 #904EC7

Accessibility & contrast

On white

11.19
#512576 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#512576 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512576
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512576#FFFFFF#000000##FFFFFF
##5125761.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A78
Deuteranopia (green-blind)
#0F3B74
Tritanopia (blue-blind)
#4B364A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #512576;
/* rgb */ color: rgb(81, 37, 118);
/* oklch */ color: oklch(36.8% 0.134 305.7);
Tailwind
colors: {
  custom: {
    50: '#85639e',
    500: '#512576',
    950: '#000000',
  },
}
SCSS
$custom: #512576;
$custom-light: #85639e;
$custom-dark: #000000;
JSON
{
  "hex": "#512576",
  "rgb": {
    "r": 81,
    "g": 37,
    "b": 118
  },
  "hsl": {
    "h": 272.593,
    "s": 52.258,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36845,
    "c": 0.13421,
    "h": 305.7
  },
  "luminance": 0.0438
}

Semantic roles & 50–950 ramp

primary
#512576
secondary
#77A94E
accent
#DC4C8E
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #512576

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

Preview Lab → · Contrast checker → · Palette generator →

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