#512691#512691

#512691 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.2% C 0.165 H 296.3°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#512691
RGBrgb(81, 38, 145)
HSLhsl(264, 58%, 36%)
HSVhsv(264, 74%, 57%)
CMYKcmyk(44.1%, 73.8%, 0%, 43.1%)
CIE-LABlab(27.24, 43.16, -51.56)
CIE-LCHlch(27.24, 67.24, 309.93°)
OKLaboklab(39.2% 0.0728 -0.1475)
OKLCHoklch(39.2% 0.165 296.3)
XYZxyz(9.1959, 5.1797, 27.2978)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512691 #669126
analogous
#263091 #512691 #862691
triadic
#512691 #915126 #269151
tetradic
#512691 #912630 #669126 #269186
square
#512691 #912630 #669126 #269186
split-complementary
#512691 #918626 #309126
monochromatic
#1B0D30 #361961 #512691 #6C33C1 #8D5DD5

Accessibility & contrast

On white

10.31
#512691 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#512691 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512691
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512691#FFFFFF#000000##FFFFFF
##5126911.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004194
Deuteranopia (green-blind)
#003F8F
Tritanopia (blue-blind)
#404159
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #512691;
/* rgb */ color: rgb(81, 38, 145);
/* oklch */ color: oklch(39.2% 0.165 296.3);
Tailwind
colors: {
  custom: {
    50: '#8864b2',
    500: '#512691',
    950: '#000000',
  },
}
SCSS
$custom: #512691;
$custom-light: #8864b2;
$custom-dark: #000000;
JSON
{
  "hex": "#512691",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 145
  },
  "hsl": {
    "h": 264.112,
    "s": 58.47,
    "l": 35.882
  },
  "oklch": {
    "l": 0.392,
    "c": 0.16452,
    "h": 296.3
  },
  "luminance": 0.0518
}

Semantic roles & 50–950 ramp

primary
#512691
secondary
#93BA59
accent
#E246A3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512691

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

Preview Lab → · Contrast checker → · Palette generator →

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