#511C90#511C90

#511C90 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.174 H 298.1°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#511C90
RGBrgb(81, 28, 144)
HSLhsl(267, 67%, 34%)
HSVhsv(267, 81%, 56%)
CMYKcmyk(43.8%, 80.6%, 0%, 43.5%)
CIE-LABlab(25.54, 47.48, -53.71)
CIE-LCHlch(25.54, 71.69, 311.48°)
OKLaboklab(37.98% 0.082 -0.1538)
OKLCHoklch(37.98% 0.174 298.1)
XYZxyz(8.8413, 4.5933, 26.8009)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C90 #5B901C
analogous
#1C2190 #511C90 #8B1C90
triadic
#511C90 #90511C #1C9051
tetradic
#511C90 #901C21 #5B901C #1C908B
square
#511C90 #901C21 #5B901C #1C908B
split-complementary
#511C90 #908B1C #21901C
monochromatic
#17082A #34125D #511C90 #6E26C3 #8D4ADC

Accessibility & contrast

On white

10.95
#511C90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#511C90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511C90
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C90#FFFFFF#000000##FFFFFF
##511C901.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511c90;
/* rgb */ color: rgb(81, 28, 144);
/* oklch */ color: oklch(38.0% 0.174 298.1);
Tailwind
colors: {
  custom: {
    50: '#895fb1',
    500: '#511c90',
    950: '#000000',
  },
}
SCSS
$custom: #511c90;
$custom-light: #895fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#511c90",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 144
  },
  "hsl": {
    "h": 267.414,
    "s": 67.442,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37981,
    "c": 0.17428,
    "h": 298.1
  },
  "luminance": 0.04593
}

Semantic roles & 50–950 ramp

primary
#511C90
secondary
#89BE4A
accent
#EA3D9B
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #511C90

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

Preview Lab → · Contrast checker → · Palette generator →

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