#512893#512893

#512893 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.6% C 0.164 H 295.4°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#512893
RGBrgb(81, 40, 147)
HSLhsl(263, 57%, 37%)
HSVhsv(263, 73%, 58%)
CMYKcmyk(44.9%, 72.8%, 0%, 42.4%)
CIE-LABlab(27.77, 42.69, -51.92)
CIE-LCHlch(27.77, 67.22, 309.43°)
OKLaboklab(39.63% 0.0705 -0.1486)
OKLCHoklch(39.63% 0.164 295.4)
XYZxyz(9.4172, 5.3733, 28.1391)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512893 #6A9328
analogous
#283593 #512893 #872893
triadic
#512893 #935128 #289351
tetradic
#512893 #932835 #6A9328 #289387
square
#512893 #932835 #6A9328 #289387
split-complementary
#512893 #938728 #359328
monochromatic
#1C0E33 #361B63 #512893 #6C35C3 #8D61D4

Accessibility & contrast

On white

10.12
#512893 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512893
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512893#FFFFFF#000000##FFFFFF
##5128931.0010.122.0710.12
#FFFFFF10.121.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004296
Deuteranopia (green-blind)
#004091
Tritanopia (blue-blind)
#3F435B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #512893;
/* rgb */ color: rgb(81, 40, 147);
/* oklch */ color: oklch(39.6% 0.164 295.4);
Tailwind
colors: {
  custom: {
    50: '#8866b4',
    500: '#512893',
    950: '#000000',
  },
}
SCSS
$custom: #512893;
$custom-light: #8866b4;
$custom-dark: #000000;
JSON
{
  "hex": "#512893",
  "rgb": {
    "r": 81,
    "g": 40,
    "b": 147
  },
  "hsl": {
    "h": 262.991,
    "s": 57.219,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39631,
    "c": 0.16445,
    "h": 295.4
  },
  "luminance": 0.05373
}

Semantic roles & 50–950 ramp

primary
#512893
secondary
#96BA5D
accent
#E047A6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512893

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

Preview Lab → · Contrast checker → · Palette generator →

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