#511B90#511B90

#511B90 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.9% C 0.175 H 298.2°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#511B90
RGBrgb(81, 27, 144)
HSLhsl(268, 68%, 34%)
HSVhsv(268, 81%, 56%)
CMYKcmyk(43.8%, 81.3%, 0%, 43.5%)
CIE-LABlab(25.40, 47.89, -53.95)
CIE-LCHlch(25.40, 72.14, 311.60°)
OKLaboklab(37.88% 0.0828 -0.1544)
OKLCHoklch(37.88% 0.175 298.2)
XYZxyz(8.8180, 4.5467, 26.7932)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B90 #5A901B
analogous
#1B2090 #511B90 #8B1B90
triadic
#511B90 #90511B #1B9051
tetradic
#511B90 #901B20 #5A901B #1B908B
square
#511B90 #901B20 #5A901B #1B908B
split-complementary
#511B90 #908B1B #20901B
monochromatic
#170829 #34115C #511B90 #6E25C4 #8D49DD

Accessibility & contrast

On white

11.00
#511B90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#511B90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B90
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B90#FFFFFF#000000##FFFFFF
##511B901.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511b90;
/* rgb */ color: rgb(81, 27, 144);
/* oklch */ color: oklch(37.9% 0.175 298.2);
Tailwind
colors: {
  custom: {
    50: '#895fb1',
    500: '#511b90',
    950: '#000000',
  },
}
SCSS
$custom: #511b90;
$custom-light: #895fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#511b90",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 144
  },
  "hsl": {
    "h": 267.692,
    "s": 68.421,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37883,
    "c": 0.17524,
    "h": 298.2
  },
  "luminance": 0.04547
}

Semantic roles & 50–950 ramp

primary
#511B90
secondary
#88BF48
accent
#EB3D9B
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #511B90

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

Preview Lab → · Contrast checker → · Palette generator →

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