#512B84#512B84

#512B84 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.8% C 0.142 H 299.3°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#512B84
RGBrgb(81, 43, 132)
HSLhsl(266, 51%, 34%)
HSVhsv(266, 67%, 52%)
CMYKcmyk(38.6%, 67.4%, 0%, 48.2%)
CIE-LABlab(27.14, 36.96, -43.65)
CIE-LCHlch(27.14, 57.19, 310.26°)
OKLaboklab(38.8% 0.0696 -0.1243)
OKLCHoklch(38.8% 0.142 299.3)
XYZxyz(8.4210, 5.1429, 22.3743)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512B84 #5E842B
analogous
#2B3284 #512B84 #7E2B84
triadic
#512B84 #84512B #2B8451
tetradic
#512B84 #842B32 #5E842B #2B847E
square
#512B84 #842B32 #5E842B #2B847E
split-complementary
#512B84 #847E2B #32842B
monochromatic
#180D28 #351C56 #512B84 #6D3AB2 #8D5FCB

Accessibility & contrast

On white

10.35
#512B84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#512B84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512B84
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512B84#FFFFFF#000000##FFFFFF
##512B841.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004087
Deuteranopia (green-blind)
#003F82
Tritanopia (blue-blind)
#453F53
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #512b84;
/* rgb */ color: rgb(81, 43, 132);
/* oklch */ color: oklch(38.8% 0.142 299.3);
Tailwind
colors: {
  custom: {
    50: '#8667a8',
    500: '#512b84',
    950: '#000000',
  },
}
SCSS
$custom: #512b84;
$custom-light: #8667a8;
$custom-dark: #000000;
JSON
{
  "hex": "#512b84",
  "rgb": {
    "r": 81,
    "g": 43,
    "b": 132
  },
  "hsl": {
    "h": 265.618,
    "s": 50.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38797,
    "c": 0.14245,
    "h": 299.3
  },
  "luminance": 0.05143
}

Semantic roles & 50–950 ramp

primary
#512B84
secondary
#8CB15A
accent
#DA4D9E
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #512B84

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

Preview Lab → · Contrast checker → · Palette generator →

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