#512C7D#512C7D

#512C7D is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.4% C 0.132 H 301.4°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#512C7D
RGBrgb(81, 44, 125)
HSLhsl(267, 48%, 33%)
HSVhsv(267, 65%, 49%)
CMYKcmyk(35.2%, 64.8%, 0%, 51%)
CIE-LABlab(26.82, 34.49, -39.76)
CIE-LCHlch(26.82, 52.63, 310.94°)
OKLaboklab(38.4% 0.069 -0.1128)
OKLCHoklch(38.4% 0.132 301.4)
XYZxyz(7.9948, 5.0313, 19.9480)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512C7D #587D2C
analogous
#2C307D #512C7D #792C7D
triadic
#512C7D #7D512C #2C7D51
tetradic
#512C7D #7D2C30 #587D2C #2C7D79
square
#512C7D #7D2C30 #587D2C #2C7D79
split-complementary
#512C7D #7D792C #307D2C
monochromatic
#160C22 #341C50 #512C7D #6E3CAA #8D5DC6

Accessibility & contrast

On white

10.47
#512C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#512C7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512C7D
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512C7D#FFFFFF#000000##FFFFFF
##512C7D1.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#103F7B
Tritanopia (blue-blind)
#483D50
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #512c7d;
/* rgb */ color: rgb(81, 44, 125);
/* oklch */ color: oklch(38.4% 0.132 301.4);
Tailwind
colors: {
  custom: {
    50: '#8567a3',
    500: '#512c7d',
    950: '#000000',
  },
}
SCSS
$custom: #512c7d;
$custom-light: #8567a3;
$custom-dark: #000000;
JSON
{
  "hex": "#512c7d",
  "rgb": {
    "r": 81,
    "g": 44,
    "b": 125
  },
  "hsl": {
    "h": 267.407,
    "s": 47.929,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38404,
    "c": 0.13228,
    "h": 301.4
  },
  "luminance": 0.05031
}

Semantic roles & 50–950 ramp

primary
#512C7D
secondary
#86AC59
accent
#D8509A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #512C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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