#512972#512972

#512972 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.1% C 0.123 H 306.6°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#512972
RGBrgb(81, 41, 114)
HSLhsl(273, 47%, 30%)
HSVhsv(273, 64%, 45%)
CMYKcmyk(28.9%, 64%, 0%, 55.3%)
CIE-LABlab(25.41, 33.28, -35.04)
CIE-LCHlch(25.41, 48.33, 313.52°)
OKLaboklab(37.13% 0.0735 -0.099)
OKLCHoklch(37.13% 0.123 306.6)
XYZxyz(7.2229, 4.5502, 16.4141)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512972 #4A7229
analogous
#2C2972 #512972 #72296E
triadic
#512972 #725129 #297251
tetradic
#512972 #722C29 #4A7229 #296E72
square
#512972 #722C29 #4A7229 #296E72
split-complementary
#512972 #6E7229 #29722C
monochromatic
#110918 #311945 #512972 #71399F #9054C1

Accessibility & contrast

On white

10.99
#512972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#512972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512972
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512972#FFFFFF#000000##FFFFFF
##5129721.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053B74
Deuteranopia (green-blind)
#1B3D70
Tritanopia (blue-blind)
#4C3849
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #512972;
/* rgb */ color: rgb(81, 41, 114);
/* oklch */ color: oklch(37.1% 0.123 306.6);
Tailwind
colors: {
  custom: {
    50: '#85659b',
    500: '#512972',
    950: '#000000',
  },
}
SCSS
$custom: #512972;
$custom-light: #85659b;
$custom-dark: #000000;
JSON
{
  "hex": "#512972",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 114
  },
  "hsl": {
    "h": 272.877,
    "s": 47.097,
    "l": 30.392
  },
  "oklch": {
    "l": 0.37131,
    "c": 0.12328,
    "h": 306.6
  },
  "luminance": 0.0455
}

Semantic roles & 50–950 ramp

primary
#512972
secondary
#77A453
accent
#D7518D
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #512972

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

Preview Lab → · Contrast checker → · Palette generator →

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