#512689#512689

#512689 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.155 H 298.7°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#512689
RGBrgb(81, 38, 137)
HSLhsl(266, 57%, 34%)
HSVhsv(266, 72%, 54%)
CMYKcmyk(40.9%, 72.3%, 0%, 46.3%)
CIE-LABlab(26.57, 40.99, -47.69)
CIE-LCHlch(26.57, 62.89, 310.68°)
OKLaboklab(38.51% 0.0745 -0.1362)
OKLCHoklch(38.51% 0.155 298.7)
XYZxyz(8.6007, 4.9416, 24.1628)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512689 #5E8926
analogous
#262D89 #512689 #832689
triadic
#512689 #895126 #268951
tetradic
#512689 #89262D #5E8926 #268983
square
#512689 #89262D #5E8926 #268983
split-complementary
#512689 #898326 #2D8926
monochromatic
#180B29 #351959 #512689 #6D33B9 #8D59D1

Accessibility & contrast

On white

10.56
#512689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#512689 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512689
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512689#FFFFFF#000000##FFFFFF
##5126891.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8C
Deuteranopia (green-blind)
#003E87
Tritanopia (blue-blind)
#443E55
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #512689;
/* rgb */ color: rgb(81, 38, 137);
/* oklch */ color: oklch(38.5% 0.155 298.7);
Tailwind
colors: {
  custom: {
    50: '#8764ac',
    500: '#512689',
    950: '#000000',
  },
}
SCSS
$custom: #512689;
$custom-light: #8764ac;
$custom-dark: #000000;
JSON
{
  "hex": "#512689",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 137
  },
  "hsl": {
    "h": 266.061,
    "s": 56.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38513,
    "c": 0.15519,
    "h": 298.7
  },
  "luminance": 0.04942
}

Semantic roles & 50–950 ramp

primary
#512689
secondary
#8CB655
accent
#E0489E
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #512689

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

Preview Lab → · Contrast checker → · Palette generator →

#512689 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva