#512072#512072

#512072 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.137 H 308.4°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#512072
RGBrgb(81, 32, 114)
HSLhsl(276, 56%, 29%)
HSVhsv(276, 72%, 45%)
CMYKcmyk(28.9%, 71.9%, 0%, 55.3%)
CIE-LABlab(23.66, 38.09, -37.86)
CIE-LCHlch(23.66, 53.70, 315.17°)
OKLaboklab(35.87% 0.0849 -0.1072)
OKLCHoklch(35.87% 0.137 308.4)
XYZxyz(6.9465, 3.9974, 16.3220)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512072 #417220
analogous
#282072 #512072 #72206A
triadic
#512072 #725120 #207251
tetradic
#512072 #722820 #417220 #206A72
square
#512072 #722820 #417220 #206A72
split-complementary
#512072 #6A7220 #207228
monochromatic
#110718 #2F1342 #512072 #732DA2 #9342CA

Accessibility & contrast

On white

11.67
#512072 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#512072 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512072
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512072#FFFFFF#000000##FFFFFF
##5120721.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003674
Deuteranopia (green-blind)
#0E3970
Tritanopia (blue-blind)
#4C3246
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #512072;
/* rgb */ color: rgb(81, 32, 114);
/* oklch */ color: oklch(35.9% 0.137 308.4);
Tailwind
colors: {
  custom: {
    50: '#85609b',
    500: '#512072',
    950: '#000000',
  },
}
SCSS
$custom: #512072;
$custom-light: #85609b;
$custom-dark: #000000;
JSON
{
  "hex": "#512072",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 114
  },
  "hsl": {
    "h": 275.854,
    "s": 56.164,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35869,
    "c": 0.13674,
    "h": 308.4
  },
  "luminance": 0.03997
}

Semantic roles & 50–950 ramp

primary
#512072
secondary
#6EA648
accent
#DF4885
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #512072

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

Preview Lab → · Contrast checker → · Palette generator →

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