#512396#512396

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

Color values

HEX#512396
RGBrgb(81, 35, 150)
HSLhsl(264, 62%, 36%)
HSVhsv(264, 77%, 59%)
CMYKcmyk(46%, 76.7%, 0%, 41.2%)
CIE-LABlab(27.17, 45.96, -54.76)
CIE-LCHlch(27.17, 71.49, 310.01°)
OKLaboklab(39.28% 0.0744 -0.1569)
OKLCHoklch(39.28% 0.174 295.4)
XYZxyz(9.4979, 5.1532, 29.3425)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512396 #689623
analogous
#232F96 #512396 #8B2396
triadic
#512396 #965123 #239651
tetradic
#512396 #96232F #689623 #23968B
square
#512396 #96232F #689623 #23968B
split-complementary
#512396 #968B23 #2F9623
monochromatic
#1B0C33 #361764 #512396 #6C2FC8 #8D5BD9

Accessibility & contrast

On white

10.34
#512396 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#512396 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512396
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512396#FFFFFF#000000##FFFFFF
##5123961.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004199
Deuteranopia (green-blind)
#003E94
Tritanopia (blue-blind)
#3E425B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #512396;
/* rgb */ color: rgb(81, 35, 150);
/* oklch */ color: oklch(39.3% 0.174 295.4);
Tailwind
colors: {
  custom: {
    50: '#8963b6',
    500: '#512396',
    950: '#000000',
  },
}
SCSS
$custom: #512396;
$custom-light: #8963b6;
$custom-dark: #000000;
JSON
{
  "hex": "#512396",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 150
  },
  "hsl": {
    "h": 264,
    "s": 62.162,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39284,
    "c": 0.17364,
    "h": 295.4
  },
  "luminance": 0.05153
}

Semantic roles & 50–950 ramp

primary
#512396
secondary
#95BD58
accent
#E543A4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #512396

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

Preview Lab → · Contrast checker → · Palette generator →

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