#512B4E#512B4E

#512B4E is a dark, moderate purple. Relative luminance 0.040; OKLCH L 35.2% C 0.077 H 330.0°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#512B4E
RGBrgb(81, 43, 78)
HSLhsl(305, 31%, 24%)
HSVhsv(305, 47%, 32%)
CMYKcmyk(0%, 46.9%, 3.7%, 68.2%)
CIE-LABlab(23.76, 23.55, -14.11)
CIE-LCHlch(23.76, 27.45, 329.08°)
OKLaboklab(35.23% 0.0663 -0.0384)
OKLCHoklch(35.23% 0.077 330)
XYZxyz(5.6323, 4.0274, 7.6870)
Luminance0.0403 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512B4E #2B512E
analogous
#412B51 #512B4E #512B3B
triadic
#512B4E #4E512B #2B4E51
tetradic
#512B4E #51412B #2B512E #2B3B51
square
#512B4E #51412B #2B512E #2B3B51
split-complementary
#512B4E #3B512B #2B5141
monochromatic
#140B13 #291628 #512B4E #794074 #A1559B

Accessibility & contrast

On white

11.63
#512B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#512B4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512B4E
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512B4E#FFFFFF#000000##FFFFFF
##512B4E1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29354F
Deuteranopia (green-blind)
#333A4D
Tritanopia (blue-blind)
#542E39
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #512b4e;
/* rgb */ color: rgb(81, 43, 78);
/* oklch */ color: oklch(35.2% 0.077 330.0);
Tailwind
colors: {
  custom: {
    50: '#83657f',
    500: '#512b4e',
    950: '#000000',
  },
}
SCSS
$custom: #512b4e;
$custom-light: #83657f;
$custom-dark: #000000;
JSON
{
  "hex": "#512b4e",
  "rgb": {
    "r": 81,
    "g": 43,
    "b": 78
  },
  "hsl": {
    "h": 304.737,
    "s": 30.645,
    "l": 24.314
  },
  "oklch": {
    "l": 0.35233,
    "c": 0.07663,
    "h": 330
  },
  "luminance": 0.04027
}

Semantic roles & 50–950 ramp

primary
#512B4E
secondary
#558358
accent
#C76961
background
#F8F6F7
surface
#EFEBEE
border
#CAC6C9
text
#0B060A
muted
#7C7A7C

Preview Lab

Preview with #512B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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