#511AA9#511AA9

#511AA9 is a dark, highly saturated violet. Relative luminance 0.054; OKLCH L 40.2% C 0.202 H 291.7°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#511AA9
RGBrgb(81, 26, 169)
HSLhsl(263, 73%, 38%)
HSVhsv(263, 85%, 66%)
CMYKcmyk(52.1%, 84.6%, 0%, 33.7%)
CIE-LABlab(27.72, 54.66, -65.42)
CIE-LCHlch(27.72, 85.25, 309.88°)
OKLaboklab(40.22% 0.0747 -0.188)
OKLCHoklch(40.22% 0.202 291.7)
XYZxyz(10.9221, 5.3523, 37.9860)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511AA9 #72A91A
analogous
#1A2AA9 #511AA9 #981AA9
triadic
#511AA9 #A9511A #1AA951
tetradic
#511AA9 #A91A2A #72A91A #1AA998
square
#511AA9 #A91A2A #72A91A #1AA998
split-complementary
#511AA9 #A9981A #2AA91A
monochromatic
#1E0A3F #381274 #511AA9 #6B23DD #8E58E5

Accessibility & contrast

On white

10.14
#511AA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#511AA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511AA9
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511AA9#FFFFFF#000000##FFFFFF
##511AA91.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AD
Deuteranopia (green-blind)
#003EA7
Tritanopia (blue-blind)
#324664
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #511aa9;
/* rgb */ color: rgb(81, 26, 169);
/* oklch */ color: oklch(40.2% 0.202 291.7);
Tailwind
colors: {
  custom: {
    50: '#8c60c4',
    500: '#511aa9',
    950: '#000000',
  },
}
SCSS
$custom: #511aa9;
$custom-light: #8c60c4;
$custom-dark: #000000;
JSON
{
  "hex": "#511aa9",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 169
  },
  "hsl": {
    "h": 263.077,
    "s": 73.333,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40219,
    "c": 0.20232,
    "h": 291.7
  },
  "luminance": 0.05353
}

Semantic roles & 50–950 ramp

primary
#511AA9
secondary
#9DC956
accent
#F038A9
background
#F9F5FC
surface
#F1EAF8
border
#CBC6D1
text
#0D0513
muted
#7E7982

Preview Lab

Preview with #511AA9

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

Preview Lab → · Contrast checker → · Palette generator →

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