#512372#512372

#512372 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.3% C 0.132 H 307.8°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#512372
RGBrgb(81, 35, 114)
HSLhsl(275, 53%, 29%)
HSVhsv(275, 69%, 45%)
CMYKcmyk(28.9%, 69.3%, 0%, 55.3%)
CIE-LABlab(24.21, 36.56, -36.97)
CIE-LCHlch(24.21, 51.99, 314.68°)
OKLaboklab(36.27% 0.0812 -0.1046)
OKLCHoklch(36.27% 0.132 307.8)
XYZxyz(7.0310, 4.1664, 16.3501)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512372 #447223
analogous
#2A2372 #512372 #72236C
triadic
#512372 #725123 #237251
tetradic
#512372 #722A23 #447223 #236C72
square
#512372 #722A23 #447223 #236C72
split-complementary
#512372 #6C7223 #23722A
monochromatic
#110717 #301543 #512372 #7231A1 #9248C7

Accessibility & contrast

On white

11.46
#512372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512372
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512372#FFFFFF#000000##FFFFFF
##5123721.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003874
Deuteranopia (green-blind)
#133A70
Tritanopia (blue-blind)
#4C3447
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #512372;
/* rgb */ color: rgb(81, 35, 114);
/* oklch */ color: oklch(36.3% 0.132 307.8);
Tailwind
colors: {
  custom: {
    50: '#85619b',
    500: '#512372',
    950: '#000000',
  },
}
SCSS
$custom: #512372;
$custom-light: #85619b;
$custom-dark: #000000;
JSON
{
  "hex": "#512372",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 114
  },
  "hsl": {
    "h": 274.937,
    "s": 53.02,
    "l": 29.216
  },
  "oklch": {
    "l": 0.36265,
    "c": 0.13246,
    "h": 307.8
  },
  "luminance": 0.04166
}

Semantic roles & 50–950 ramp

primary
#512372
secondary
#71A54C
accent
#DC4B88
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #512372

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

Preview Lab → · Contrast checker → · Palette generator →

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