#512190#512190

#512190 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.169 H 297.4°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#512190
RGBrgb(81, 33, 144)
HSLhsl(266, 63%, 35%)
HSVhsv(266, 77%, 56%)
CMYKcmyk(43.8%, 77.1%, 0%, 43.5%)
CIE-LABlab(26.30, 45.30, -52.47)
CIE-LCHlch(26.30, 69.32, 310.80°)
OKLaboklab(38.51% 0.0778 -0.1502)
OKLCHoklch(38.51% 0.169 297.4)
XYZxyz(8.9699, 4.8505, 26.8438)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512190 #609021
analogous
#212890 #512190 #892190
triadic
#512190 #905121 #219051
tetradic
#512190 #902128 #609021 #219089
square
#512190 #902128 #609021 #219089
split-complementary
#512190 #908921 #289021
monochromatic
#190A2C #35165E #512190 #6D2CC2 #8D54D8

Accessibility & contrast

On white

10.66
#512190 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#512190 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512190
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512190#FFFFFF#000000##FFFFFF
##5121901.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #512190;
/* rgb */ color: rgb(81, 33, 144);
/* oklch */ color: oklch(38.5% 0.169 297.4);
Tailwind
colors: {
  custom: {
    50: '#8862b1',
    500: '#512190',
    950: '#000000',
  },
}
SCSS
$custom: #512190;
$custom-light: #8862b1;
$custom-dark: #000000;
JSON
{
  "hex": "#512190",
  "rgb": {
    "r": 81,
    "g": 33,
    "b": 144
  },
  "hsl": {
    "h": 265.946,
    "s": 62.712,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38513,
    "c": 0.1691,
    "h": 297.4
  },
  "luminance": 0.04851
}

Semantic roles & 50–950 ramp

primary
#512190
secondary
#8EBB51
accent
#E6429F
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #512190

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

Preview Lab → · Contrast checker → · Palette generator →

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