#512090#512090

#512090 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.170 H 297.5°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#512090
RGBrgb(81, 32, 144)
HSLhsl(266, 64%, 35%)
HSVhsv(266, 78%, 56%)
CMYKcmyk(43.8%, 77.8%, 0%, 43.5%)
CIE-LABlab(26.14, 45.75, -52.73)
CIE-LCHlch(26.14, 69.81, 310.95°)
OKLaboklab(38.4% 0.0787 -0.1509)
OKLCHoklch(38.4% 0.17 297.5)
XYZxyz(8.9426, 4.7958, 26.8347)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512090 #5F9020
analogous
#202790 #512090 #892090
triadic
#512090 #905120 #209051
tetradic
#512090 #902027 #5F9020 #209089
square
#512090 #902027 #5F9020 #209089
split-complementary
#512090 #908920 #279020
monochromatic
#190A2C #35155E #512090 #6D2BC2 #8D52D9

Accessibility & contrast

On white

10.72
#512090 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#512090 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512090
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512090#FFFFFF#000000##FFFFFF
##5120901.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E93
Deuteranopia (green-blind)
#003D8E
Tritanopia (blue-blind)
#413E57
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #512090;
/* rgb */ color: rgb(81, 32, 144);
/* oklch */ color: oklch(38.4% 0.170 297.5);
Tailwind
colors: {
  custom: {
    50: '#8861b1',
    500: '#512090',
    950: '#000000',
  },
}
SCSS
$custom: #512090;
$custom-light: #8861b1;
$custom-dark: #000000;
JSON
{
  "hex": "#512090",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 144
  },
  "hsl": {
    "h": 266.25,
    "s": 63.636,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38401,
    "c": 0.17018,
    "h": 297.5
  },
  "luminance": 0.04796
}

Semantic roles & 50–950 ramp

primary
#512090
secondary
#8DBC50
accent
#E7419E
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #512090

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

Preview Lab → · Contrast checker → · Palette generator →

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