#512393#512393

#512393 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.0% C 0.170 H 296.2°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#512393
RGBrgb(81, 35, 147)
HSLhsl(265, 62%, 36%)
HSVhsv(265, 76%, 58%)
CMYKcmyk(44.9%, 76.2%, 0%, 42.4%)
CIE-LABlab(26.90, 45.16, -53.35)
CIE-LCHlch(26.90, 69.90, 310.25°)
OKLaboklab(39.01% 0.0752 -0.1528)
OKLCHoklch(39.01% 0.17 296.2)
XYZxyz(9.2594, 5.0578, 28.0865)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512393 #659323
analogous
#232D93 #512393 #892393
triadic
#512393 #935123 #239351
tetradic
#512393 #93232D #659323 #239389
square
#512393 #93232D #659323 #239389
split-complementary
#512393 #938923 #2D9323
monochromatic
#1B0B30 #361762 #512393 #6C2FC4 #8D59D7

Accessibility & contrast

On white

10.44
#512393 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#512393 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512393
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512393#FFFFFF#000000##FFFFFF
##5123931.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004096
Deuteranopia (green-blind)
#003E91
Tritanopia (blue-blind)
#3F4159
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #512393;
/* rgb */ color: rgb(81, 35, 147);
/* oklch */ color: oklch(39.0% 0.170 296.2);
Tailwind
colors: {
  custom: {
    50: '#8963b4',
    500: '#512393',
    950: '#000000',
  },
}
SCSS
$custom: #512393;
$custom-light: #8963b4;
$custom-dark: #000000;
JSON
{
  "hex": "#512393",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 147
  },
  "hsl": {
    "h": 264.643,
    "s": 61.538,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39013,
    "c": 0.17026,
    "h": 296.2
  },
  "luminance": 0.05058
}

Semantic roles & 50–950 ramp

primary
#512393
secondary
#92BC56
accent
#E543A2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #512393

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

Preview Lab → · Contrast checker → · Palette generator →

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