#512976#512976

#512976 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.4% C 0.128 H 304.9°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#512976
RGBrgb(81, 41, 118)
HSLhsl(271, 48%, 31%)
HSVhsv(271, 65%, 46%)
CMYKcmyk(31.4%, 65.3%, 0%, 53.7%)
CIE-LABlab(25.69, 34.32, -37.14)
CIE-LCHlch(25.69, 50.57, 312.74°)
OKLaboklab(37.42% 0.0733 -0.1052)
OKLCHoklch(37.42% 0.128 304.9)
XYZxyz(7.4556, 4.6433, 17.6395)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512976 #4E7629
analogous
#2A2976 #512976 #762974
triadic
#512976 #765129 #297651
tetradic
#512976 #762A29 #4E7629 #297476
square
#512976 #762A29 #4E7629 #297476
split-complementary
#512976 #747629 #29762A
monochromatic
#13091B #321949 #512976 #7039A3 #8F55C4

Accessibility & contrast

On white

10.89
#512976 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#512976 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512976
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512976#FFFFFF#000000##FFFFFF
##5129761.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C78
Deuteranopia (green-blind)
#163D74
Tritanopia (blue-blind)
#4A394B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #512976;
/* rgb */ color: rgb(81, 41, 118);
/* oklch */ color: oklch(37.4% 0.128 304.9);
Tailwind
colors: {
  custom: {
    50: '#85659e',
    500: '#512976',
    950: '#000000',
  },
}
SCSS
$custom: #512976;
$custom-light: #85659e;
$custom-dark: #000000;
JSON
{
  "hex": "#512976",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 118
  },
  "hsl": {
    "h": 271.169,
    "s": 48.428,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37424,
    "c": 0.12819,
    "h": 304.9
  },
  "luminance": 0.04643
}

Semantic roles & 50–950 ramp

primary
#512976
secondary
#7CA853
accent
#D85091
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #512976

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

Preview Lab → · Contrast checker → · Palette generator →

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