#512193#512193

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

Color values

HEX#512193
RGBrgb(81, 33, 147)
HSLhsl(265, 63%, 35%)
HSVhsv(265, 78%, 58%)
CMYKcmyk(44.9%, 77.6%, 0%, 42.4%)
CIE-LABlab(26.57, 46.09, -53.88)
CIE-LCHlch(26.57, 70.90, 310.54°)
OKLaboklab(38.78% 0.077 -0.1543)
OKLCHoklch(38.78% 0.172 296.5)
XYZxyz(9.2023, 4.9434, 28.0674)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512193 #639321
analogous
#212A93 #512193 #8A2193
triadic
#512193 #935121 #219351
tetradic
#512193 #93212A #639321 #21938A
square
#512193 #93212A #639321 #21938A
split-complementary
#512193 #938A21 #2A9321
monochromatic
#1A0B2F #351661 #512193 #6D2CC5 #8D55D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##512193#FFFFFF#000000##FFFFFF
##5121931.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)
#003F96
Deuteranopia (green-blind)
#003D91
Tritanopia (blue-blind)
#3F4059
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #512193;
/* rgb */ color: rgb(81, 33, 147);
/* oklch */ color: oklch(38.8% 0.172 296.5);
Tailwind
colors: {
  custom: {
    50: '#8962b4',
    500: '#512193',
    950: '#000000',
  },
}
SCSS
$custom: #512193;
$custom-light: #8962b4;
$custom-dark: #000000;
JSON
{
  "hex": "#512193",
  "rgb": {
    "r": 81,
    "g": 33,
    "b": 147
  },
  "hsl": {
    "h": 265.263,
    "s": 63.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38784,
    "c": 0.17244,
    "h": 296.5
  },
  "luminance": 0.04944
}

Semantic roles & 50–950 ramp

primary
#512193
secondary
#90BD53
accent
#E641A1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #512193

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

Preview Lab → · Contrast checker → · Palette generator →

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