#511C9F#511C9F

#511C9F is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.4% C 0.190 H 293.9°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#511C9F
RGBrgb(81, 28, 159)
HSLhsl(264, 70%, 37%)
HSVhsv(264, 82%, 62%)
CMYKcmyk(49.1%, 82.4%, 0%, 37.6%)
CIE-LABlab(26.97, 51.34, -60.59)
CIE-LCHlch(26.97, 79.42, 310.28°)
OKLaboklab(39.4% 0.0771 -0.1739)
OKLCHoklch(39.4% 0.19 293.9)
XYZxyz(10.0649, 5.0827, 33.2449)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C9F #6A9F1C
analogous
#1C299F #511C9F #931C9F
triadic
#511C9F #9F511C #1C9F51
tetradic
#511C9F #9F1C29 #6A9F1C #1C9F93
square
#511C9F #9F1C29 #6A9F1C #1C9F93
split-complementary
#511C9F #9F931C #299F1C
monochromatic
#1C0A37 #36136B #511C9F #6C25D3 #8D54E1

Accessibility & contrast

On white

10.41
#511C9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#511C9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511C9F
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C9F#FFFFFF#000000##FFFFFF
##511C9F1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A3
Deuteranopia (green-blind)
#003D9D
Tritanopia (blue-blind)
#39435F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #511c9f;
/* rgb */ color: rgb(81, 28, 159);
/* oklch */ color: oklch(39.4% 0.190 293.9);
Tailwind
colors: {
  custom: {
    50: '#8b60bd',
    500: '#511c9f',
    950: '#000000',
  },
}
SCSS
$custom: #511c9f;
$custom-light: #8b60bd;
$custom-dark: #000000;
JSON
{
  "hex": "#511c9f",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 159
  },
  "hsl": {
    "h": 264.275,
    "s": 70.053,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39404,
    "c": 0.19023,
    "h": 293.9
  },
  "luminance": 0.05083
}

Semantic roles & 50–950 ramp

primary
#511C9F
secondary
#96C453
accent
#ED3BA5
background
#F9F5FB
surface
#F1EAF7
border
#CBC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #511C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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