#512E89#512E89

#512E89 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.6% C 0.144 H 297.0°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#512E89
RGBrgb(81, 46, 137)
HSLhsl(263, 50%, 36%)
HSVhsv(263, 66%, 54%)
CMYKcmyk(40.9%, 66.4%, 0%, 46.3%)
CIE-LABlab(28.14, 36.66, -45.14)
CIE-LCHlch(28.14, 58.15, 309.08°)
OKLaboklab(39.64% 0.0655 -0.1287)
OKLCHoklch(39.64% 0.144 297)
XYZxyz(8.8845, 5.5093, 24.2574)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512E89 #66892E
analogous
#2E3889 #512E89 #7E2E89
triadic
#512E89 #89512E #2E8951
tetradic
#512E89 #892E38 #66892E #2E897E
square
#512E89 #892E38 #66892E #2E897E
split-complementary
#512E89 #897E2E #38892E
monochromatic
#1B0F2D #361F5B #512E89 #6C3DB7 #8D66CC

Accessibility & contrast

On white

9.99
#512E89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#512E89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512E89
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512E89#FFFFFF#000000##FFFFFF
##512E891.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438C
Deuteranopia (green-blind)
#004187
Tritanopia (blue-blind)
#434357
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #512e89;
/* rgb */ color: rgb(81, 46, 137);
/* oklch */ color: oklch(39.6% 0.144 297.0);
Tailwind
colors: {
  custom: {
    50: '#8669ac',
    500: '#512e89',
    950: '#000000',
  },
}
SCSS
$custom: #512e89;
$custom-light: #8669ac;
$custom-dark: #000000;
JSON
{
  "hex": "#512e89",
  "rgb": {
    "r": 81,
    "g": 46,
    "b": 137
  },
  "hsl": {
    "h": 263.077,
    "s": 49.727,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39639,
    "c": 0.14441,
    "h": 297
  },
  "luminance": 0.05509
}

Semantic roles & 50–950 ramp

primary
#512E89
secondary
#93B260
accent
#D94FA4
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #512E89

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

Preview Lab → · Contrast checker → · Palette generator →

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