#512973#512973

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

Color values

HEX#512973
RGBrgb(81, 41, 115)
HSLhsl(272, 47%, 31%)
HSVhsv(272, 64%, 45%)
CMYKcmyk(29.6%, 64.3%, 0%, 54.9%)
CIE-LABlab(25.48, 33.54, -35.57)
CIE-LCHlch(25.48, 48.89, 313.32°)
OKLaboklab(37.2% 0.0734 -0.1005)
OKLCHoklch(37.2% 0.125 306.1)
XYZxyz(7.2801, 4.5731, 16.7155)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512973 #4B7329
analogous
#2C2973 #512973 #732970
triadic
#512973 #735129 #297351
tetradic
#512973 #732C29 #4B7329 #297073
square
#512973 #732C29 #4B7329 #297073
split-complementary
#512973 #707329 #29732C
monochromatic
#110919 #311946 #512973 #7139A0 #9054C2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##512973#FFFFFF#000000##FFFFFF
##5129731.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023B75
Deuteranopia (green-blind)
#1A3D71
Tritanopia (blue-blind)
#4B384A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #512973;
/* rgb */ color: rgb(81, 41, 115);
/* oklch */ color: oklch(37.2% 0.125 306.1);
Tailwind
colors: {
  custom: {
    50: '#85659c',
    500: '#512973',
    950: '#000000',
  },
}
SCSS
$custom: #512973;
$custom-light: #85659c;
$custom-dark: #000000;
JSON
{
  "hex": "#512973",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 115
  },
  "hsl": {
    "h": 272.432,
    "s": 47.436,
    "l": 30.588
  },
  "oklch": {
    "l": 0.37203,
    "c": 0.12451,
    "h": 306.1
  },
  "luminance": 0.04573
}

Semantic roles & 50–950 ramp

primary
#512973
secondary
#79A553
accent
#D7518E
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #512973

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

Preview Lab → · Contrast checker → · Palette generator →

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