#512B89#512B89

#512B89 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.2% C 0.149 H 297.7°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#512B89
RGBrgb(81, 43, 137)
HSLhsl(264, 52%, 35%)
HSVhsv(264, 69%, 54%)
CMYKcmyk(40.9%, 68.6%, 0%, 46.3%)
CIE-LABlab(27.53, 38.34, -46.13)
CIE-LCHlch(27.53, 59.98, 309.73°)
OKLaboklab(39.2% 0.069 -0.1316)
OKLCHoklch(39.2% 0.149 297.7)
XYZxyz(8.7714, 5.2831, 24.2197)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512B89 #63892B
analogous
#2B3489 #512B89 #802B89
triadic
#512B89 #89512B #2B8951
tetradic
#512B89 #892B34 #63892B #2B8980
square
#512B89 #892B34 #63892B #2B8980
split-complementary
#512B89 #89802B #34892B
monochromatic
#1A0E2C #351C5A #512B89 #6D3AB8 #8D61CD

Accessibility & contrast

On white

10.21
#512B89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#512B89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512B89
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512B89#FFFFFF#000000##FFFFFF
##512B891.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418C
Deuteranopia (green-blind)
#004087
Tritanopia (blue-blind)
#434156
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #512b89;
/* rgb */ color: rgb(81, 43, 137);
/* oklch */ color: oklch(39.2% 0.149 297.7);
Tailwind
colors: {
  custom: {
    50: '#8767ac',
    500: '#512b89',
    950: '#000000',
  },
}
SCSS
$custom: #512b89;
$custom-light: #8767ac;
$custom-dark: #000000;
JSON
{
  "hex": "#512b89",
  "rgb": {
    "r": 81,
    "g": 43,
    "b": 137
  },
  "hsl": {
    "h": 264.255,
    "s": 52.222,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39198,
    "c": 0.14859,
    "h": 297.7
  },
  "luminance": 0.05283
}

Semantic roles & 50–950 ramp

primary
#512B89
secondary
#90B35C
accent
#DC4CA2
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #512B89

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

Preview Lab → · Contrast checker → · Palette generator →

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