#512E4E#512E4E

#512E4E is a dark, moderate purple. Relative luminance 0.043; OKLCH L 35.8% C 0.071 H 330.0°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#512E4E
RGBrgb(81, 46, 78)
HSLhsl(305, 28%, 25%)
HSVhsv(305, 43%, 32%)
CMYKcmyk(0%, 43.2%, 3.7%, 68.2%)
CIE-LABlab(24.49, 21.69, -12.98)
CIE-LCHlch(24.49, 25.28, 329.10°)
OKLaboklab(35.78% 0.0611 -0.0352)
OKLCHoklch(35.78% 0.071 330)
XYZxyz(5.7454, 4.2537, 7.7247)
Luminance0.0425 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512E4E #2E5131
analogous
#432E51 #512E4E #512E3D
triadic
#512E4E #4E512E #2E4E51
tetradic
#512E4E #51432E #2E5131 #2E3D51
square
#512E4E #51432E #2E5131 #2E3D51
split-complementary
#512E4E #3D512E #2E5143
monochromatic
#140B13 #2A1828 #512E4E #784474 #9F5A99

Accessibility & contrast

On white

11.35
#512E4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#512E4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512E4E
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512E4E#FFFFFF#000000##FFFFFF
##512E4E1.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C374F
Deuteranopia (green-blind)
#363C4D
Tritanopia (blue-blind)
#54313A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #512e4e;
/* rgb */ color: rgb(81, 46, 78);
/* oklch */ color: oklch(35.8% 0.071 330.0);
Tailwind
colors: {
  custom: {
    50: '#83677f',
    500: '#512e4e',
    950: '#000000',
  },
}
SCSS
$custom: #512e4e;
$custom-light: #83677f;
$custom-dark: #000000;
JSON
{
  "hex": "#512e4e",
  "rgb": {
    "r": 81,
    "g": 46,
    "b": 78
  },
  "hsl": {
    "h": 305.143,
    "s": 27.559,
    "l": 24.902
  },
  "oklch": {
    "l": 0.35781,
    "c": 0.07051,
    "h": 330
  },
  "luminance": 0.04253
}

Semantic roles & 50–950 ramp

primary
#512E4E
secondary
#58835C
accent
#C46C64
background
#F8F6F7
surface
#EFEBEE
border
#CAC6C9
text
#0A060A
muted
#7C7A7C

Preview Lab

Preview with #512E4E

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

Preview Lab → · Contrast checker → · Palette generator →

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