#512696#512696

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

Color values

HEX#512696
RGBrgb(81, 38, 150)
HSLhsl(263, 60%, 37%)
HSVhsv(263, 75%, 59%)
CMYKcmyk(46%, 74.7%, 0%, 41.2%)
CIE-LABlab(27.67, 44.52, -53.93)
CIE-LCHlch(27.67, 69.93, 309.54°)
OKLaboklab(39.64% 0.0717 -0.1545)
OKLCHoklch(39.64% 0.17 294.9)
XYZxyz(9.5900, 5.3373, 29.3732)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512696 #6B9626
analogous
#263396 #512696 #892696
triadic
#512696 #965126 #269651
tetradic
#512696 #962633 #6B9626 #269689
square
#512696 #962633 #6B9626 #269689
split-complementary
#512696 #968926 #339626
monochromatic
#1C0D34 #371A65 #512696 #6B32C7 #8D60D7

Accessibility & contrast

On white

10.16
#512696 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#512696 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512696
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512696#FFFFFF#000000##FFFFFF
##5126961.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #512696;
/* rgb */ color: rgb(81, 38, 150);
/* oklch */ color: oklch(39.6% 0.170 294.9);
Tailwind
colors: {
  custom: {
    50: '#8965b6',
    500: '#512696',
    950: '#000000',
  },
}
SCSS
$custom: #512696;
$custom-light: #8965b6;
$custom-dark: #000000;
JSON
{
  "hex": "#512696",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 150
  },
  "hsl": {
    "h": 263.036,
    "s": 59.574,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39642,
    "c": 0.1703,
    "h": 294.9
  },
  "luminance": 0.05338
}

Semantic roles & 50–950 ramp

primary
#512696
secondary
#97BC5C
accent
#E345A6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512696

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

Preview Lab → · Contrast checker → · Palette generator →

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