#512589#512589

#512589 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.4% C 0.156 H 298.9°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#512589
RGBrgb(81, 37, 137)
HSLhsl(266, 57%, 34%)
HSVhsv(266, 73%, 54%)
CMYKcmyk(40.9%, 73%, 0%, 46.3%)
CIE-LABlab(26.39, 41.50, -47.99)
CIE-LCHlch(26.39, 63.45, 310.85°)
OKLaboklab(38.38% 0.0755 -0.137)
OKLCHoklch(38.38% 0.156 298.9)
XYZxyz(8.5691, 4.8785, 24.1522)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512589 #5D8925
analogous
#252B89 #512589 #832589
triadic
#512589 #895125 #258951
tetradic
#512589 #89252B #5D8925 #258983
square
#512589 #89252B #5D8925 #258983
split-complementary
#512589 #898325 #2B8925
monochromatic
#180B29 #351859 #512589 #6D32B9 #8D57D2

Accessibility & contrast

On white

10.63
#512589 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#512589 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512589
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512589#FFFFFF#000000##FFFFFF
##5125891.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8C
Deuteranopia (green-blind)
#003D87
Tritanopia (blue-blind)
#443E54
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #512589;
/* rgb */ color: rgb(81, 37, 137);
/* oklch */ color: oklch(38.4% 0.156 298.9);
Tailwind
colors: {
  custom: {
    50: '#8763ac',
    500: '#512589',
    950: '#000000',
  },
}
SCSS
$custom: #512589;
$custom-light: #8763ac;
$custom-dark: #000000;
JSON
{
  "hex": "#512589",
  "rgb": {
    "r": 81,
    "g": 37,
    "b": 137
  },
  "hsl": {
    "h": 266.4,
    "s": 57.471,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38384,
    "c": 0.15645,
    "h": 298.9
  },
  "luminance": 0.04879
}

Semantic roles & 50–950 ramp

primary
#512589
secondary
#8BB654
accent
#E1479D
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #512589

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

Preview Lab → · Contrast checker → · Palette generator →

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