#512876#512876

#512876 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.3% C 0.130 H 305.1°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#512876
RGBrgb(81, 40, 118)
HSLhsl(272, 49%, 31%)
HSVhsv(272, 66%, 46%)
CMYKcmyk(31.4%, 66.1%, 0%, 53.7%)
CIE-LABlab(25.49, 34.88, -37.47)
CIE-LCHlch(25.49, 51.19, 312.95°)
OKLaboklab(37.28% 0.0746 -0.1061)
OKLCHoklch(37.28% 0.13 305.1)
XYZxyz(7.4214, 4.5750, 17.6281)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512876 #4D7628
analogous
#2A2876 #512876 #762874
triadic
#512876 #765128 #287651
tetradic
#512876 #762A28 #4D7628 #287476
square
#512876 #762A28 #4D7628 #287476
split-complementary
#512876 #747628 #28762A
monochromatic
#12091B #321948 #512876 #7037A4 #8F54C5

Accessibility & contrast

On white

10.97
#512876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#512876 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512876
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512876#FFFFFF#000000##FFFFFF
##5128761.0010.971.9210.97
#FFFFFF10.971.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B78
Deuteranopia (green-blind)
#143C74
Tritanopia (blue-blind)
#4A384B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #512876;
/* rgb */ color: rgb(81, 40, 118);
/* oklch */ color: oklch(37.3% 0.130 305.1);
Tailwind
colors: {
  custom: {
    50: '#85659e',
    500: '#512876',
    950: '#000000',
  },
}
SCSS
$custom: #512876;
$custom-light: #85659e;
$custom-dark: #000000;
JSON
{
  "hex": "#512876",
  "rgb": {
    "r": 81,
    "g": 40,
    "b": 118
  },
  "hsl": {
    "h": 271.538,
    "s": 49.367,
    "l": 30.98
  },
  "oklch": {
    "l": 0.37275,
    "c": 0.12973,
    "h": 305.1
  },
  "luminance": 0.04575
}

Semantic roles & 50–950 ramp

primary
#512876
secondary
#7BA852
accent
#D94F90
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #512876

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

Preview Lab → · Contrast checker → · Palette generator →

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