#512790#512790

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

Color values

HEX#512790
RGBrgb(81, 39, 144)
HSLhsl(264, 57%, 36%)
HSVhsv(264, 73%, 56%)
CMYKcmyk(43.8%, 72.9%, 0%, 43.5%)
CIE-LABlab(27.34, 42.38, -50.79)
CIE-LCHlch(27.34, 66.14, 309.84°)
OKLaboklab(39.24% 0.0721 -0.1452)
OKLCHoklch(39.24% 0.162 296.4)
XYZxyz(9.1516, 5.2138, 26.9043)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512790 #669027
analogous
#273190 #512790 #852790
triadic
#512790 #905127 #279051
tetradic
#512790 #902731 #669027 #279085
square
#512790 #902731 #669027 #279085
split-complementary
#512790 #908527 #319027
monochromatic
#1B0D30 #361A60 #512790 #6C34C0 #8D5ED3

Accessibility & contrast

On white

10.28
#512790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512790
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512790#FFFFFF#000000##FFFFFF
##5127901.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004193
Deuteranopia (green-blind)
#003F8E
Tritanopia (blue-blind)
#404159
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #512790;
/* rgb */ color: rgb(81, 39, 144);
/* oklch */ color: oklch(39.2% 0.162 296.4);
Tailwind
colors: {
  custom: {
    50: '#8865b1',
    500: '#512790',
    950: '#000000',
  },
}
SCSS
$custom: #512790;
$custom-light: #8865b1;
$custom-dark: #000000;
JSON
{
  "hex": "#512790",
  "rgb": {
    "r": 81,
    "g": 39,
    "b": 144
  },
  "hsl": {
    "h": 264,
    "s": 57.377,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39241,
    "c": 0.16215,
    "h": 296.4
  },
  "luminance": 0.05214
}

Semantic roles & 50–950 ramp

primary
#512790
secondary
#93B95A
accent
#E147A3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512790

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

Preview Lab → · Contrast checker → · Palette generator →

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