#511D90#511D90

#511D90 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.173 H 297.9°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#511D90
RGBrgb(81, 29, 144)
HSLhsl(267, 66%, 34%)
HSVhsv(267, 80%, 56%)
CMYKcmyk(43.8%, 79.9%, 0%, 43.5%)
CIE-LABlab(25.69, 47.07, -53.48)
CIE-LCHlch(25.69, 71.24, 311.35°)
OKLaboklab(38.08% 0.0812 -0.1531)
OKLCHoklch(38.08% 0.173 297.9)
XYZxyz(8.8654, 4.6415, 26.8090)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D90 #5C901D
analogous
#1D2390 #511D90 #8B1D90
triadic
#511D90 #90511D #1D9051
tetradic
#511D90 #901D23 #5C901D #1D908B
square
#511D90 #901D23 #5C901D #1D908B
split-complementary
#511D90 #908B1D #23901D
monochromatic
#18082A #34135D #511D90 #6E27C3 #8D4CDB

Accessibility & contrast

On white

10.89
#511D90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#511D90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511D90
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D90#FFFFFF#000000##FFFFFF
##511D901.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D93
Deuteranopia (green-blind)
#003C8E
Tritanopia (blue-blind)
#413D56
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #511d90;
/* rgb */ color: rgb(81, 29, 144);
/* oklch */ color: oklch(38.1% 0.173 297.9);
Tailwind
colors: {
  custom: {
    50: '#8960b1',
    500: '#511d90',
    950: '#000000',
  },
}
SCSS
$custom: #511d90;
$custom-light: #8960b1;
$custom-dark: #000000;
JSON
{
  "hex": "#511d90",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 144
  },
  "hsl": {
    "h": 267.13,
    "s": 66.474,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38082,
    "c": 0.17329,
    "h": 297.9
  },
  "luminance": 0.04642
}

Semantic roles & 50–950 ramp

primary
#511D90
secondary
#8ABD4B
accent
#E93E9C
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #511D90

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

Preview Lab → · Contrast checker → · Palette generator →

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