#511A90#511A90

#511A90 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.8% C 0.176 H 298.3°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#511A90
RGBrgb(81, 26, 144)
HSLhsl(268, 69%, 33%)
HSVhsv(268, 82%, 56%)
CMYKcmyk(43.8%, 81.9%, 0%, 43.5%)
CIE-LABlab(25.26, 48.29, -54.17)
CIE-LCHlch(25.26, 72.57, 311.72°)
OKLaboklab(37.79% 0.0836 -0.1551)
OKLCHoklch(37.79% 0.176 298.3)
XYZxyz(8.7955, 4.5016, 26.7856)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A90 #59901A
analogous
#1A1E90 #511A90 #8C1A90
triadic
#511A90 #90511A #1A9051
tetradic
#511A90 #901A1E #59901A #1A908C
square
#511A90 #901A1E #59901A #1A908C
split-complementary
#511A90 #908C1A #1E901A
monochromatic
#170728 #34115C #511A90 #6E23C4 #8D47DE

Accessibility & contrast

On white

11.05
#511A90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#511A90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A90
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A90#FFFFFF#000000##FFFFFF
##511A901.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C93
Deuteranopia (green-blind)
#003B8E
Tritanopia (blue-blind)
#413B56
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #511a90;
/* rgb */ color: rgb(81, 26, 144);
/* oklch */ color: oklch(37.8% 0.176 298.3);
Tailwind
colors: {
  custom: {
    50: '#895eb2',
    500: '#511a90',
    950: '#000000',
  },
}
SCSS
$custom: #511a90;
$custom-light: #895eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#511a90",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 144
  },
  "hsl": {
    "h": 267.966,
    "s": 69.412,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37787,
    "c": 0.17618,
    "h": 298.3
  },
  "luminance": 0.04502
}

Semantic roles & 50–950 ramp

primary
#511A90
secondary
#87BF47
accent
#EC3C9A
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #511A90

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

Preview Lab → · Contrast checker → · Palette generator →

#511A90 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva