#512078#512078

#512078 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.143 H 305.8°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#512078
RGBrgb(81, 32, 120)
HSLhsl(273, 58%, 30%)
HSVhsv(273, 73%, 47%)
CMYKcmyk(32.5%, 73.3%, 0%, 52.9%)
CIE-LABlab(24.12, 39.58, -40.95)
CIE-LCHlch(24.12, 56.95, 314.02°)
OKLaboklab(36.34% 0.084 -0.1163)
OKLCHoklch(36.34% 0.143 305.8)
XYZxyz(7.2993, 4.1385, 18.1799)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512078 #477820
analogous
#252078 #512078 #782073
triadic
#512078 #785120 #207851
tetradic
#512078 #782520 #477820 #207378
square
#512078 #782520 #477820 #207378
split-complementary
#512078 #737820 #207825
monochromatic
#100618 #301348 #512078 #722DA8 #9145CD

Accessibility & contrast

On white

11.49
#512078 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#512078 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512078
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512078#FFFFFF#000000##FFFFFF
##5120781.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387B
Deuteranopia (green-blind)
#003A76
Tritanopia (blue-blind)
#4A3449
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #512078;
/* rgb */ color: rgb(81, 32, 120);
/* oklch */ color: oklch(36.3% 0.143 305.8);
Tailwind
colors: {
  custom: {
    50: '#8660a0',
    500: '#512078',
    950: '#000000',
  },
}
SCSS
$custom: #512078;
$custom-light: #8660a0;
$custom-dark: #000000;
JSON
{
  "hex": "#512078",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 120
  },
  "hsl": {
    "h": 273.409,
    "s": 57.895,
    "l": 29.804
  },
  "oklch": {
    "l": 0.36344,
    "c": 0.14347,
    "h": 305.8
  },
  "luminance": 0.04138
}

Semantic roles & 50–950 ramp

primary
#512078
secondary
#74AB48
accent
#E1478B
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #512078

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

Preview Lab → · Contrast checker → · Palette generator →

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