#511A89#511A89

#511A89 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.169 H 300.5°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#511A89
RGBrgb(81, 26, 137)
HSLhsl(270, 68%, 32%)
HSVhsv(270, 81%, 54%)
CMYKcmyk(40.9%, 81%, 0%, 46.3%)
CIE-LABlab(24.62, 46.53, -50.87)
CIE-LCHlch(24.62, 68.94, 312.45°)
OKLaboklab(37.14% 0.0858 -0.1454)
OKLCHoklch(37.14% 0.169 300.5)
XYZxyz(8.2770, 4.2942, 24.0549)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A89 #52891A
analogous
#1A1A89 #511A89 #891A89
triadic
#511A89 #89511A #1A8951
tetradic
#511A89 #891A1A #52891A #1A8989
square
#511A89 #891A1A #52891A #1A8989
split-complementary
#511A89 #89891A #1A891A
monochromatic
#140622 #331056 #511A89 #6F24BC #8E42DB

Accessibility & contrast

On white

11.30
#511A89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#511A89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A89
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A89#FFFFFF#000000##FFFFFF
##511A891.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8C
Deuteranopia (green-blind)
#003A87
Tritanopia (blue-blind)
#443852
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #511a89;
/* rgb */ color: rgb(81, 26, 137);
/* oklch */ color: oklch(37.1% 0.169 300.5);
Tailwind
colors: {
  custom: {
    50: '#885eac',
    500: '#511a89',
    950: '#000000',
  },
}
SCSS
$custom: #511a89;
$custom-light: #885eac;
$custom-dark: #000000;
JSON
{
  "hex": "#511a89",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 137
  },
  "hsl": {
    "h": 269.73,
    "s": 68.098,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37142,
    "c": 0.16882,
    "h": 300.5
  },
  "luminance": 0.04294
}

Semantic roles & 50–950 ramp

primary
#511A89
secondary
#80BC43
accent
#EB3D95
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511A89

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

Preview Lab → · Contrast checker → · Palette generator →

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