#512693#512693

#512693 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.167 H 295.7°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#512693
RGBrgb(81, 38, 147)
HSLhsl(264, 59%, 36%)
HSVhsv(264, 74%, 58%)
CMYKcmyk(44.9%, 74.1%, 0%, 42.4%)
CIE-LABlab(27.41, 43.70, -52.51)
CIE-LCHlch(27.41, 68.32, 309.77°)
OKLaboklab(39.38% 0.0724 -0.1503)
OKLCHoklch(39.38% 0.167 295.7)
XYZxyz(9.3515, 5.2419, 28.1172)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512693 #689326
analogous
#263293 #512693 #882693
triadic
#512693 #935126 #269351
tetradic
#512693 #932632 #689326 #269388
square
#512693 #932632 #689326 #269388
split-complementary
#512693 #938826 #329326
monochromatic
#1B0D32 #361962 #512693 #6C33C4 #8D5ED5

Accessibility & contrast

On white

10.25
#512693 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#512693 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512693
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512693#FFFFFF#000000##FFFFFF
##5126931.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004196
Deuteranopia (green-blind)
#003F91
Tritanopia (blue-blind)
#3F425A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #512693;
/* rgb */ color: rgb(81, 38, 147);
/* oklch */ color: oklch(39.4% 0.167 295.7);
Tailwind
colors: {
  custom: {
    50: '#8865b4',
    500: '#512693',
    950: '#000000',
  },
}
SCSS
$custom: #512693;
$custom-light: #8865b4;
$custom-dark: #000000;
JSON
{
  "hex": "#512693",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 147
  },
  "hsl": {
    "h": 263.67,
    "s": 58.919,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39376,
    "c": 0.16683,
    "h": 295.7
  },
  "luminance": 0.05242
}

Semantic roles & 50–950 ramp

primary
#512693
secondary
#95BA5A
accent
#E246A4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512693

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

Preview Lab → · Contrast checker → · Palette generator →

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