#512399#512399

#512399 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.6% C 0.177 H 294.6°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#512399
RGBrgb(81, 35, 153)
HSLhsl(263, 63%, 37%)
HSVhsv(263, 77%, 60%)
CMYKcmyk(47.1%, 77.1%, 0%, 40%)
CIE-LABlab(27.44, 46.77, -56.15)
CIE-LCHlch(27.44, 73.08, 309.79°)
OKLaboklab(39.56% 0.0736 -0.161)
OKLCHoklch(39.56% 0.177 294.6)
XYZxyz(9.7426, 5.2510, 30.6310)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512399 #6B9923
analogous
#233099 #512399 #8C2399
triadic
#512399 #995123 #239951
tetradic
#512399 #992330 #6B9923 #23998C
square
#512399 #992330 #6B9923 #23998C
split-complementary
#512399 #998C23 #309923
monochromatic
#1C0C35 #371867 #512399 #6B2ECB #8D5DDA

Accessibility & contrast

On white

10.24
#512399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#512399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512399
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512399#FFFFFF#000000##FFFFFF
##5123991.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429C
Deuteranopia (green-blind)
#003F97
Tritanopia (blue-blind)
#3C435D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #512399;
/* rgb */ color: rgb(81, 35, 153);
/* oklch */ color: oklch(39.6% 0.177 294.6);
Tailwind
colors: {
  custom: {
    50: '#8963b8',
    500: '#512399',
    950: '#000000',
  },
}
SCSS
$custom: #512399;
$custom-light: #8963b8;
$custom-dark: #000000;
JSON
{
  "hex": "#512399",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 153
  },
  "hsl": {
    "h": 263.39,
    "s": 62.766,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39558,
    "c": 0.17701,
    "h": 294.6
  },
  "luminance": 0.05251
}

Semantic roles & 50–950 ramp

primary
#512399
secondary
#97BE59
accent
#E642A6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512399

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

Preview Lab → · Contrast checker → · Palette generator →

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