#511CB4#511CB4

#511CB4 is a dark, highly saturated violet. Relative luminance 0.059; OKLCH L 41.5% C 0.212 H 289.1°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#511CB4
RGBrgb(81, 28, 180)
HSLhsl(261, 73%, 41%)
HSVhsv(261, 84%, 71%)
CMYKcmyk(55%, 84.4%, 0%, 29.4%)
CIE-LABlab(29.09, 56.77, -69.75)
CIE-LCHlch(29.09, 89.93, 309.15°)
OKLaboklab(41.5% 0.0694 -0.2007)
OKLCHoklch(41.5% 0.212 289.1)
XYZxyz(12.0444, 5.8745, 43.6704)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511CB4 #7FB41C
analogous
#1C33B4 #511CB4 #9D1CB4
triadic
#511CB4 #B4511C #1CB451
tetradic
#511CB4 #B41C33 #7FB41C #1CB49D
square
#511CB4 #B41C33 #7FB41C #1CB49D
split-complementary
#511CB4 #B49D1C #33B41C
monochromatic
#210C4A #39147F #511CB4 #6C2FDF #9164E7

Accessibility & contrast

On white

9.66
#511CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#511CB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511CB4
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511CB4#FFFFFF#000000##FFFFFF
##511CB41.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B8
Deuteranopia (green-blind)
#0041B1
Tritanopia (blue-blind)
#284C6B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #511cb4;
/* rgb */ color: rgb(81, 28, 180);
/* oklch */ color: oklch(41.5% 0.212 289.1);
Tailwind
colors: {
  custom: {
    50: '#8e62cc',
    500: '#511cb4',
    950: '#000000',
  },
}
SCSS
$custom: #511cb4;
$custom-light: #8e62cc;
$custom-dark: #000000;
JSON
{
  "hex": "#511cb4",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 180
  },
  "hsl": {
    "h": 260.921,
    "s": 73.077,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41502,
    "c": 0.21234,
    "h": 289.1
  },
  "luminance": 0.05875
}

Semantic roles & 50–950 ramp

primary
#511CB4
secondary
#A6CC60
accent
#F038B0
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0514
muted
#7E7A82

Preview Lab

Preview with #511CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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