#512A4E#512A4E

#512A4E is a dark, moderate purple. Relative luminance 0.040; OKLCH L 35.1% C 0.079 H 329.9°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#512A4E
RGBrgb(81, 42, 78)
HSLhsl(305, 32%, 24%)
HSVhsv(305, 48%, 32%)
CMYKcmyk(0%, 48.1%, 3.7%, 68.2%)
CIE-LABlab(23.52, 24.16, -14.47)
CIE-LCHlch(23.52, 28.16, 329.07°)
OKLaboklab(35.06% 0.0681 -0.0394)
OKLCHoklch(35.06% 0.079 329.9)
XYZxyz(5.5964, 3.9556, 7.6750)
Luminance0.0396 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512A4E #2A512D
analogous
#412A51 #512A4E #512A3B
triadic
#512A4E #4E512A #2A4E51
tetradic
#512A4E #51412A #2A512D #2A3B51
square
#512A4E #51412A #2A512D #2A3B51
split-complementary
#512A4E #3B512A #2A5141
monochromatic
#140A13 #291527 #512A4E #793F75 #A2549C

Accessibility & contrast

On white

11.73
#512A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#512A4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512A4E
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512A4E#FFFFFF#000000##FFFFFF
##512A4E1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28354F
Deuteranopia (green-blind)
#333A4D
Tritanopia (blue-blind)
#542D38
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #512a4e;
/* rgb */ color: rgb(81, 42, 78);
/* oklch */ color: oklch(35.1% 0.079 329.9);
Tailwind
colors: {
  custom: {
    50: '#83657f',
    500: '#512a4e',
    950: '#000000',
  },
}
SCSS
$custom: #512a4e;
$custom-light: #83657f;
$custom-dark: #000000;
JSON
{
  "hex": "#512a4e",
  "rgb": {
    "r": 81,
    "g": 42,
    "b": 78
  },
  "hsl": {
    "h": 304.615,
    "s": 31.707,
    "l": 24.118
  },
  "oklch": {
    "l": 0.35055,
    "c": 0.07865,
    "h": 329.9
  },
  "luminance": 0.03955
}

Semantic roles & 50–950 ramp

primary
#512A4E
secondary
#548357
accent
#C86860
background
#F8F6F7
surface
#EFEBEE
border
#CAC6C9
text
#0B050A
muted
#7C7A7C

Preview Lab

Preview with #512A4E

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

Preview Lab → · Contrast checker → · Palette generator →

#512A4E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva