#512593#512593

#512593 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.168 H 295.9°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#512593
RGBrgb(81, 37, 147)
HSLhsl(264, 60%, 36%)
HSVhsv(264, 75%, 58%)
CMYKcmyk(44.9%, 74.8%, 0%, 42.4%)
CIE-LABlab(27.24, 44.19, -52.80)
CIE-LCHlch(27.24, 68.85, 309.93°)
OKLaboklab(39.25% 0.0733 -0.1511)
OKLCHoklch(39.25% 0.168 295.9)
XYZxyz(9.3200, 5.1788, 28.1067)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512593 #679325
analogous
#253093 #512593 #882593
triadic
#512593 #935125 #259351
tetradic
#512593 #932530 #679325 #259388
square
#512593 #932530 #679325 #259388
split-complementary
#512593 #938825 #309325
monochromatic
#1B0C31 #361962 #512593 #6C31C4 #8D5CD6

Accessibility & contrast

On white

10.32
#512593 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#512593 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512593
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512593#FFFFFF#000000##FFFFFF
##5125931.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004196
Deuteranopia (green-blind)
#003F91
Tritanopia (blue-blind)
#3F425A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #512593;
/* rgb */ color: rgb(81, 37, 147);
/* oklch */ color: oklch(39.3% 0.168 295.9);
Tailwind
colors: {
  custom: {
    50: '#8864b4',
    500: '#512593',
    950: '#000000',
  },
}
SCSS
$custom: #512593;
$custom-light: #8864b4;
$custom-dark: #000000;
JSON
{
  "hex": "#512593",
  "rgb": {
    "r": 81,
    "g": 37,
    "b": 147
  },
  "hsl": {
    "h": 264,
    "s": 59.783,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39252,
    "c": 0.168,
    "h": 295.9
  },
  "luminance": 0.05179
}

Semantic roles & 50–950 ramp

primary
#512593
secondary
#94BB59
accent
#E345A4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512593

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

Preview Lab → · Contrast checker → · Palette generator →

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