#511C83#511C83

#511C83 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.160 H 302.3°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#511C83
RGBrgb(81, 28, 131)
HSLhsl(271, 65%, 31%)
HSVhsv(271, 79%, 51%)
CMYKcmyk(38.2%, 78.6%, 0%, 48.6%)
CIE-LABlab(24.38, 44.19, -47.50)
CIE-LCHlch(24.38, 64.88, 312.93°)
OKLaboklab(36.81% 0.0857 -0.1355)
OKLCHoklch(36.81% 0.16 302.3)
XYZxyz(7.9043, 4.2185, 21.8662)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C83 #4E831C
analogous
#1D1C83 #511C83 #831C81
triadic
#511C83 #83511C #1C8351
tetradic
#511C83 #831D1C #4E831C #1C8183
square
#511C83 #831D1C #4E831C #1C8183
split-complementary
#511C83 #81831C #1C831D
monochromatic
#13061E #321151 #511C83 #7027B5 #8F43D7

Accessibility & contrast

On white

11.39
#511C83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#511C83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511C83
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C83#FFFFFF#000000##FFFFFF
##511C831.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003986
Deuteranopia (green-blind)
#003A81
Tritanopia (blue-blind)
#46374F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #511c83;
/* rgb */ color: rgb(81, 28, 131);
/* oklch */ color: oklch(36.8% 0.160 302.3);
Tailwind
colors: {
  custom: {
    50: '#875ea8',
    500: '#511c83',
    950: '#000000',
  },
}
SCSS
$custom: #511c83;
$custom-light: #875ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#511c83",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 131
  },
  "hsl": {
    "h": 270.874,
    "s": 64.78,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3681,
    "c": 0.16035,
    "h": 302.3
  },
  "luminance": 0.04219
}

Semantic roles & 50–950 ramp

primary
#511C83
secondary
#7CB645
accent
#E84091
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511C83

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

Preview Lab → · Contrast checker → · Palette generator →

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