#512596#512596

#512596 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.5% C 0.171 H 295.1°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#512596
RGBrgb(81, 37, 150)
HSLhsl(263, 60%, 37%)
HSVhsv(263, 75%, 59%)
CMYKcmyk(46%, 75.3%, 0%, 41.2%)
CIE-LABlab(27.50, 45.01, -54.21)
CIE-LCHlch(27.50, 70.46, 309.70°)
OKLaboklab(39.52% 0.0726 -0.1553)
OKLCHoklch(39.52% 0.171 295.1)
XYZxyz(9.5584, 5.2742, 29.3627)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512596 #6A9625
analogous
#253196 #512596 #8A2596
triadic
#512596 #965125 #259651
tetradic
#512596 #962531 #6A9625 #25968A
square
#512596 #962531 #6A9625 #25968A
split-complementary
#512596 #968A25 #319625
monochromatic
#1C0D34 #361965 #512596 #6C31C7 #8D5ED7

Accessibility & contrast

On white

10.22
#512596 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512596
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512596#FFFFFF#000000##FFFFFF
##5125961.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004299
Deuteranopia (green-blind)
#003F94
Tritanopia (blue-blind)
#3D435C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #512596;
/* rgb */ color: rgb(81, 37, 150);
/* oklch */ color: oklch(39.5% 0.171 295.1);
Tailwind
colors: {
  custom: {
    50: '#8964b6',
    500: '#512596',
    950: '#000000',
  },
}
SCSS
$custom: #512596;
$custom-light: #8964b6;
$custom-dark: #000000;
JSON
{
  "hex": "#512596",
  "rgb": {
    "r": 81,
    "g": 37,
    "b": 150
  },
  "hsl": {
    "h": 263.363,
    "s": 60.428,
    "l": 36.667
  },
  "oklch": {
    "l": 0.3952,
    "c": 0.17144,
    "h": 295.1
  },
  "luminance": 0.05274
}

Semantic roles & 50–950 ramp

primary
#512596
secondary
#96BC5B
accent
#E444A6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512596

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

Preview Lab → · Contrast checker → · Palette generator →

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