#511B83#511B83

#511B83 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.161 H 302.5°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#511B83
RGBrgb(81, 27, 131)
HSLhsl(271, 66%, 31%)
HSVhsv(271, 79%, 51%)
CMYKcmyk(38.2%, 79.4%, 0%, 48.6%)
CIE-LABlab(24.23, 44.62, -47.74)
CIE-LCHlch(24.23, 65.35, 313.06°)
OKLaboklab(36.71% 0.0866 -0.1362)
OKLCHoklch(36.71% 0.161 302.5)
XYZxyz(7.8810, 4.1719, 21.8584)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B83 #4D831B
analogous
#1D1B83 #511B83 #831B81
triadic
#511B83 #83511B #1B8351
tetradic
#511B83 #831D1B #4D831B #1B8183
square
#511B83 #831D1B #4D831B #1B8183
split-complementary
#511B83 #81831B #1B831D
monochromatic
#12061E #321150 #511B83 #7025B6 #8F41D8

Accessibility & contrast

On white

11.45
#511B83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#511B83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B83
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B83#FFFFFF#000000##FFFFFF
##511B831.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003986
Deuteranopia (green-blind)
#003981
Tritanopia (blue-blind)
#46364E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #511b83;
/* rgb */ color: rgb(81, 27, 131);
/* oklch */ color: oklch(36.7% 0.161 302.5);
Tailwind
colors: {
  custom: {
    50: '#875ea8',
    500: '#511b83',
    950: '#000000',
  },
}
SCSS
$custom: #511b83;
$custom-light: #875ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#511b83",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 131
  },
  "hsl": {
    "h": 271.154,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36705,
    "c": 0.16144,
    "h": 302.5
  },
  "luminance": 0.04172
}

Semantic roles & 50–950 ramp

primary
#511B83
secondary
#7BB643
accent
#E93F91
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511B83

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

Preview Lab → · Contrast checker → · Palette generator →

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