#512996#512996

#512996 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.0% C 0.167 H 294.4°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#512996
RGBrgb(81, 41, 150)
HSLhsl(262, 57%, 37%)
HSVhsv(262, 73%, 59%)
CMYKcmyk(46%, 72.7%, 0%, 41.2%)
CIE-LABlab(28.21, 43.00, -53.05)
CIE-LCHlch(28.21, 68.29, 309.03°)
OKLaboklab(40.02% 0.0688 -0.1519)
OKLCHoklch(40.02% 0.167 294.4)
XYZxyz(9.6898, 5.5369, 29.4064)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512996 #6E9629
analogous
#293896 #512996 #872996
triadic
#512996 #965129 #299651
tetradic
#512996 #962938 #6E9629 #299687
square
#512996 #962938 #6E9629 #299687
split-complementary
#512996 #968729 #389629
monochromatic
#1D0F36 #371C66 #512996 #6B36C6 #8E65D5

Accessibility & contrast

On white

9.96
#512996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#512996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512996
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512996#FFFFFF#000000##FFFFFF
##5129961.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004499
Deuteranopia (green-blind)
#004194
Tritanopia (blue-blind)
#3D455D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #512996;
/* rgb */ color: rgb(81, 41, 150);
/* oklch */ color: oklch(40.0% 0.167 294.4);
Tailwind
colors: {
  custom: {
    50: '#8866b6',
    500: '#512996',
    950: '#000000',
  },
}
SCSS
$custom: #512996;
$custom-light: #8866b6;
$custom-dark: #000000;
JSON
{
  "hex": "#512996",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 150
  },
  "hsl": {
    "h": 262.018,
    "s": 57.068,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40022,
    "c": 0.16678,
    "h": 294.4
  },
  "luminance": 0.05537
}

Semantic roles & 50–950 ramp

primary
#512996
secondary
#99BB60
accent
#E047A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512996

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

Preview Lab → · Contrast checker → · Palette generator →

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