#512892#512892

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

Color values

HEX#512892
RGBrgb(81, 40, 146)
HSLhsl(263, 57%, 36%)
HSVhsv(263, 73%, 57%)
CMYKcmyk(44.5%, 72.6%, 0%, 42.7%)
CIE-LABlab(27.69, 42.41, -51.45)
CIE-LCHlch(27.69, 66.68, 309.50°)
OKLaboklab(39.54% 0.0707 -0.1472)
OKLCHoklch(39.54% 0.163 295.6)
XYZxyz(9.3391, 5.3420, 27.7276)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512892 #699228
analogous
#283492 #512892 #862892
triadic
#512892 #925128 #289251
tetradic
#512892 #922834 #699228 #289286
square
#512892 #922834 #699228 #289286
split-complementary
#512892 #928628 #349228
monochromatic
#1C0E32 #361B62 #512892 #6C35C2 #8D61D4

Accessibility & contrast

On white

10.15
#512892 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512892
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512892#FFFFFF#000000##FFFFFF
##5128921.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004295
Deuteranopia (green-blind)
#004090
Tritanopia (blue-blind)
#3F435A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #512892;
/* rgb */ color: rgb(81, 40, 146);
/* oklch */ color: oklch(39.5% 0.163 295.6);
Tailwind
colors: {
  custom: {
    50: '#8866b3',
    500: '#512892',
    950: '#000000',
  },
}
SCSS
$custom: #512892;
$custom-light: #8866b3;
$custom-dark: #000000;
JSON
{
  "hex": "#512892",
  "rgb": {
    "r": 81,
    "g": 40,
    "b": 146
  },
  "hsl": {
    "h": 263.208,
    "s": 56.989,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39544,
    "c": 0.16328,
    "h": 295.6
  },
  "luminance": 0.05342
}

Semantic roles & 50–950 ramp

primary
#512892
secondary
#95B95D
accent
#E048A5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512892

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

Preview Lab → · Contrast checker → · Palette generator →

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