#511D95#511D95

#511D95 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.179 H 296.5°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#511D95
RGBrgb(81, 29, 149)
HSLhsl(266, 67%, 35%)
HSVhsv(266, 81%, 58%)
CMYKcmyk(45.6%, 80.5%, 0%, 41.6%)
CIE-LABlab(26.15, 48.35, -55.81)
CIE-LCHlch(26.15, 73.84, 310.91°)
OKLaboklab(38.55% 0.0797 -0.1599)
OKLCHoklch(38.55% 0.179 296.5)
XYZxyz(9.2561, 4.7978, 28.8663)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D95 #61951D
analogous
#1D2595 #511D95 #8D1D95
triadic
#511D95 #95511D #1D9551
tetradic
#511D95 #951D25 #61951D #1D958D
square
#511D95 #951D25 #61951D #1D958D
split-complementary
#511D95 #958D1D #25951D
monochromatic
#19092F #351362 #511D95 #6D27C8 #8D50DD

Accessibility & contrast

On white

10.72
#511D95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#511D95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511D95
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D95#FFFFFF#000000##FFFFFF
##511D951.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E98
Deuteranopia (green-blind)
#003C93
Tritanopia (blue-blind)
#3E3F59
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #511d95;
/* rgb */ color: rgb(81, 29, 149);
/* oklch */ color: oklch(38.5% 0.179 296.5);
Tailwind
colors: {
  custom: {
    50: '#8960b5',
    500: '#511d95',
    950: '#000000',
  },
}
SCSS
$custom: #511d95;
$custom-light: #8960b5;
$custom-dark: #000000;
JSON
{
  "hex": "#511d95",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 149
  },
  "hsl": {
    "h": 266,
    "s": 67.416,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38546,
    "c": 0.17866,
    "h": 296.5
  },
  "luminance": 0.04798
}

Semantic roles & 50–950 ramp

primary
#511D95
secondary
#8EC04E
accent
#EA3D9F
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #511D95

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

Preview Lab → · Contrast checker → · Palette generator →

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