#512D89#512D89

#512D89 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.5% C 0.146 H 297.2°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#512D89
RGBrgb(81, 45, 137)
HSLhsl(263, 51%, 36%)
HSVhsv(263, 67%, 54%)
CMYKcmyk(40.9%, 67.2%, 0%, 46.3%)
CIE-LABlab(27.93, 37.23, -45.48)
CIE-LCHlch(27.93, 58.77, 309.30°)
OKLaboklab(39.49% 0.0667 -0.1297)
OKLCHoklch(39.49% 0.146 297.2)
XYZxyz(8.8459, 5.4321, 24.2445)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512D89 #65892D
analogous
#2D3789 #512D89 #7F2D89
triadic
#512D89 #89512D #2D8951
tetradic
#512D89 #892D37 #65892D #2D897F
square
#512D89 #892D37 #65892D #2D897F
split-complementary
#512D89 #897F2D #37892D
monochromatic
#1B0F2D #361E5B #512D89 #6C3CB7 #8D64CC

Accessibility & contrast

On white

10.07
#512D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#512D89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512D89
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512D89#FFFFFF#000000##FFFFFF
##512D891.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #512d89;
/* rgb */ color: rgb(81, 45, 137);
/* oklch */ color: oklch(39.5% 0.146 297.2);
Tailwind
colors: {
  custom: {
    50: '#8768ac',
    500: '#512d89',
    950: '#000000',
  },
}
SCSS
$custom: #512d89;
$custom-light: #8768ac;
$custom-dark: #000000;
JSON
{
  "hex": "#512d89",
  "rgb": {
    "r": 81,
    "g": 45,
    "b": 137
  },
  "hsl": {
    "h": 263.478,
    "s": 50.549,
    "l": 35.686
  },
  "oklch": {
    "l": 0.3949,
    "c": 0.14582,
    "h": 297.2
  },
  "luminance": 0.05432
}

Semantic roles & 50–950 ramp

primary
#512D89
secondary
#92B35F
accent
#DA4EA3
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #512D89

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

Preview Lab → · Contrast checker → · Palette generator →

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