#512896#512896

#512896 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.9% C 0.168 H 294.6°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#512896
RGBrgb(81, 40, 150)
HSLhsl(262, 58%, 37%)
HSVhsv(262, 73%, 59%)
CMYKcmyk(46%, 73.3%, 0%, 41.2%)
CIE-LABlab(28.03, 43.52, -53.35)
CIE-LCHlch(28.03, 68.84, 309.20°)
OKLaboklab(39.89% 0.0698 -0.1528)
OKLCHoklch(39.89% 0.168 294.6)
XYZxyz(9.6557, 5.4687, 29.3951)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512896 #6D9628
analogous
#283696 #512896 #882896
triadic
#512896 #965128 #289651
tetradic
#512896 #962836 #6D9628 #289688
square
#512896 #962836 #6D9628 #289688
split-complementary
#512896 #968828 #369628
monochromatic
#1D0E35 #371B66 #512896 #6B35C6 #8E63D5

Accessibility & contrast

On white

10.03
#512896 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#512896 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512896
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512896#FFFFFF#000000##FFFFFF
##5128961.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004399
Deuteranopia (green-blind)
#004094
Tritanopia (blue-blind)
#3D445C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #512896;
/* rgb */ color: rgb(81, 40, 150);
/* oklch */ color: oklch(39.9% 0.168 294.6);
Tailwind
colors: {
  custom: {
    50: '#8966b6',
    500: '#512896',
    950: '#000000',
  },
}
SCSS
$custom: #512896;
$custom-light: #8966b6;
$custom-dark: #000000;
JSON
{
  "hex": "#512896",
  "rgb": {
    "r": 81,
    "g": 40,
    "b": 150
  },
  "hsl": {
    "h": 262.364,
    "s": 57.895,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39893,
    "c": 0.16797,
    "h": 294.6
  },
  "luminance": 0.05469
}

Semantic roles & 50–950 ramp

primary
#512896
secondary
#99BB5F
accent
#E147A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512896

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

Preview Lab → · Contrast checker → · Palette generator →

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