#511A83#511A83

#511A83 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.163 H 302.6°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#511A83
RGBrgb(81, 26, 131)
HSLhsl(271, 67%, 31%)
HSVhsv(271, 80%, 51%)
CMYKcmyk(38.2%, 80.2%, 0%, 48.6%)
CIE-LABlab(24.09, 45.04, -47.98)
CIE-LCHlch(24.09, 65.81, 313.19°)
OKLaboklab(36.6% 0.0875 -0.1369)
OKLCHoklch(36.6% 0.163 302.6)
XYZxyz(7.8585, 4.1268, 21.8509)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A83 #4C831A
analogous
#1D1A83 #511A83 #831A80
triadic
#511A83 #83511A #1A8351
tetradic
#511A83 #831D1A #4C831A #1A8083
square
#511A83 #831D1A #4C831A #1A8083
split-complementary
#511A83 #80831A #1A831D
monochromatic
#12061D #311050 #511A83 #7124B6 #8F3FD9

Accessibility & contrast

On white

11.50
#511A83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511A83
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A83#FFFFFF#000000##FFFFFF
##511A831.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003886
Deuteranopia (green-blind)
#003981
Tritanopia (blue-blind)
#46364E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #511a83;
/* rgb */ color: rgb(81, 26, 131);
/* oklch */ color: oklch(36.6% 0.163 302.6);
Tailwind
colors: {
  custom: {
    50: '#875ea8',
    500: '#511a83',
    950: '#000000',
  },
}
SCSS
$custom: #511a83;
$custom-light: #875ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#511a83",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 131
  },
  "hsl": {
    "h": 271.429,
    "s": 66.879,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36603,
    "c": 0.1625,
    "h": 302.6
  },
  "luminance": 0.04127
}

Semantic roles & 50–950 ramp

primary
#511A83
secondary
#7AB742
accent
#EA3E90
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511A83

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

Preview Lab → · Contrast checker → · Palette generator →

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