#512B60#512B60

#512B60 is a dark, moderate purple. Relative luminance 0.043; OKLCH L 36.2% C 0.098 H 315.6°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#512B60
RGBrgb(81, 43, 96)
HSLhsl(283, 38%, 27%)
HSVhsv(283, 55%, 38%)
CMYKcmyk(15.6%, 55.2%, 0%, 62.4%)
CIE-LABlab(24.71, 27.61, -24.52)
CIE-LCHlch(24.71, 36.93, 318.39°)
OKLaboklab(36.25% 0.0698 -0.0683)
OKLCHoklch(36.25% 0.098 315.6)
XYZxyz(6.3682, 4.3218, 11.5628)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512B60 #3A602B
analogous
#372B60 #512B60 #602B54
triadic
#512B60 #60512B #2B6051
tetradic
#512B60 #60372B #3A602B #2B5460
square
#512B60 #60372B #3A602B #2B5460
split-complementary
#512B60 #54602B #2B6037
monochromatic
#120915 #2D1836 #512B60 #753E8A #9753B2

Accessibility & contrast

On white

11.26
#512B60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#512B60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512B60
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512B60#FFFFFF#000000##FFFFFF
##512B601.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3862
Deuteranopia (green-blind)
#2B3C5F
Tritanopia (blue-blind)
#503341
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #512b60;
/* rgb */ color: rgb(81, 43, 96);
/* oklch */ color: oklch(36.2% 0.098 315.6);
Tailwind
colors: {
  custom: {
    50: '#83668d',
    500: '#512b60',
    950: '#000000',
  },
}
SCSS
$custom: #512b60;
$custom-light: #83668d;
$custom-dark: #000000;
JSON
{
  "hex": "#512b60",
  "rgb": {
    "r": 81,
    "g": 43,
    "b": 96
  },
  "hsl": {
    "h": 283.019,
    "s": 38.129,
    "l": 27.255
  },
  "oklch": {
    "l": 0.36246,
    "c": 0.09763,
    "h": 315.6
  },
  "luminance": 0.04322
}

Semantic roles & 50–950 ramp

primary
#512B60
secondary
#669255
accent
#CE5A7B
background
#F8F6F8
surface
#EFEBF0
border
#CAC6CB
text
#0B060C
muted
#7C7A7D

Preview Lab

Preview with #512B60

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

Preview Lab → · Contrast checker → · Palette generator →

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