#512194#512194

#512194 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.174 H 296.2°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#512194
RGBrgb(81, 33, 148)
HSLhsl(265, 64%, 35%)
HSVhsv(265, 78%, 58%)
CMYKcmyk(45.3%, 77.7%, 0%, 42%)
CIE-LABlab(26.66, 46.35, -54.35)
CIE-LCHlch(26.66, 71.43, 310.46°)
OKLaboklab(38.88% 0.0767 -0.1557)
OKLCHoklch(38.88% 0.174 296.2)
XYZxyz(9.2811, 4.9749, 28.4825)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512194 #649421
analogous
#212B94 #512194 #8A2194
triadic
#512194 #945121 #219451
tetradic
#512194 #94212B #649421 #21948A
square
#512194 #94212B #649421 #21948A
split-complementary
#512194 #948A21 #2B9421
monochromatic
#1A0B30 #361662 #512194 #6C2CC6 #8D56D9

Accessibility & contrast

On white

10.53
#512194 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#512194 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512194
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512194#FFFFFF#000000##FFFFFF
##5121941.0010.532.0010.53
#FFFFFF10.531.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004097
Deuteranopia (green-blind)
#003D92
Tritanopia (blue-blind)
#3F4059
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #512194;
/* rgb */ color: rgb(81, 33, 148);
/* oklch */ color: oklch(38.9% 0.174 296.2);
Tailwind
colors: {
  custom: {
    50: '#8962b4',
    500: '#512194',
    950: '#000000',
  },
}
SCSS
$custom: #512194;
$custom-light: #8962b4;
$custom-dark: #000000;
JSON
{
  "hex": "#512194",
  "rgb": {
    "r": 81,
    "g": 33,
    "b": 148
  },
  "hsl": {
    "h": 265.043,
    "s": 63.536,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38875,
    "c": 0.17355,
    "h": 296.2
  },
  "luminance": 0.04975
}

Semantic roles & 50–950 ramp

primary
#512194
secondary
#91BD54
accent
#E741A2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #512194

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

Preview Lab → · Contrast checker → · Palette generator →

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