#512B4B#512B4B

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

Color values

HEX#512B4B
RGBrgb(81, 43, 75)
HSLhsl(309, 31%, 24%)
HSVhsv(309, 47%, 32%)
CMYKcmyk(0%, 46.9%, 7.4%, 68.2%)
CIE-LABlab(23.62, 22.92, -12.31)
CIE-LCHlch(23.62, 26.02, 331.76°)
OKLaboklab(35.08% 0.0655 -0.0333)
OKLCHoklch(35.08% 0.073 333.1)
XYZxyz(5.5272, 3.9854, 7.1334)
Luminance0.0398 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512B4B #2B5131
analogous
#442B51 #512B4B #512B38
triadic
#512B4B #4B512B #2B4B51
tetradic
#512B4B #51442B #2B5131 #2B3851
square
#512B4B #51442B #2B5131 #2B3851
split-complementary
#512B4B #38512B #2B5144
monochromatic
#140B13 #291626 #512B4B #794070 #A15595

Accessibility & contrast

On white

11.69
#512B4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#512B4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512B4B
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512B4B#FFFFFF#000000##FFFFFF
##512B4B1.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A354C
Deuteranopia (green-blind)
#353A4A
Tritanopia (blue-blind)
#542D37
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #512b4b;
/* rgb */ color: rgb(81, 43, 75);
/* oklch */ color: oklch(35.1% 0.073 333.1);
Tailwind
colors: {
  custom: {
    50: '#83657d',
    500: '#512b4b',
    950: '#000000',
  },
}
SCSS
$custom: #512b4b;
$custom-light: #83657d;
$custom-dark: #000000;
JSON
{
  "hex": "#512b4b",
  "rgb": {
    "r": 81,
    "g": 43,
    "b": 75
  },
  "hsl": {
    "h": 309.474,
    "s": 30.645,
    "l": 24.314
  },
  "oklch": {
    "l": 0.35083,
    "c": 0.07349,
    "h": 333.1
  },
  "luminance": 0.03985
}

Semantic roles & 50–950 ramp

primary
#512B4B
secondary
#55835C
accent
#C77161
background
#F8F6F7
surface
#EFEBEE
border
#CAC6C9
text
#0B0609
muted
#7C7A7B

Preview Lab

Preview with #512B4B

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

Preview Lab → · Contrast checker → · Palette generator →

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