#512371#512371

#512371 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.131 H 308.3°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#512371
RGBrgb(81, 35, 113)
HSLhsl(275, 53%, 29%)
HSVhsv(275, 69%, 44%)
CMYKcmyk(28.3%, 69%, 0%, 55.7%)
CIE-LABlab(24.14, 36.30, -36.45)
CIE-LCHlch(24.14, 51.44, 314.89°)
OKLaboklab(36.19% 0.0813 -0.1031)
OKLCHoklch(36.19% 0.131 308.3)
XYZxyz(6.9744, 4.1438, 16.0520)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512371 #437123
analogous
#2A2371 #512371 #71236A
triadic
#512371 #715123 #237151
tetradic
#512371 #712A23 #437123 #236A71
square
#512371 #712A23 #437123 #236A71
split-complementary
#512371 #6A7123 #23712A
monochromatic
#110717 #301542 #512371 #7231A0 #9348C6

Accessibility & contrast

On white

11.48
#512371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#512371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512371
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512371#FFFFFF#000000##FFFFFF
##5123711.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003873
Deuteranopia (green-blind)
#143A6F
Tritanopia (blue-blind)
#4C3347
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #512371;
/* rgb */ color: rgb(81, 35, 113);
/* oklch */ color: oklch(36.2% 0.131 308.3);
Tailwind
colors: {
  custom: {
    50: '#85619a',
    500: '#512371',
    950: '#000000',
  },
}
SCSS
$custom: #512371;
$custom-light: #85619a;
$custom-dark: #000000;
JSON
{
  "hex": "#512371",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 113
  },
  "hsl": {
    "h": 275.385,
    "s": 52.703,
    "l": 29.02
  },
  "oklch": {
    "l": 0.36189,
    "c": 0.1313,
    "h": 308.3
  },
  "luminance": 0.04144
}

Semantic roles & 50–950 ramp

primary
#512371
secondary
#70A44C
accent
#DC4C87
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #512371

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

Preview Lab → · Contrast checker → · Palette generator →

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