#511D92#511D92

#511D92 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.175 H 297.3°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#511D92
RGBrgb(81, 29, 146)
HSLhsl(267, 67%, 34%)
HSVhsv(267, 80%, 57%)
CMYKcmyk(44.5%, 80.1%, 0%, 42.7%)
CIE-LABlab(25.87, 47.58, -54.41)
CIE-LCHlch(25.87, 72.28, 311.17°)
OKLaboklab(38.27% 0.0806 -0.1558)
OKLCHoklch(38.27% 0.175 297.3)
XYZxyz(9.0196, 4.7032, 27.6212)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D92 #5E921D
analogous
#1D2392 #511D92 #8C1D92
triadic
#511D92 #92511D #1D9251
tetradic
#511D92 #921D23 #5E921D #1D928C
square
#511D92 #921D23 #5E921D #1D928C
split-complementary
#511D92 #928C1D #23921D
monochromatic
#18092C #35135F #511D92 #6D27C5 #8D4EDC

Accessibility & contrast

On white

10.82
#511D92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#511D92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511D92
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D92#FFFFFF#000000##FFFFFF
##511D921.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E95
Deuteranopia (green-blind)
#003C90
Tritanopia (blue-blind)
#403D57
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #511d92;
/* rgb */ color: rgb(81, 29, 146);
/* oklch */ color: oklch(38.3% 0.175 297.3);
Tailwind
colors: {
  custom: {
    50: '#8960b3',
    500: '#511d92',
    950: '#000000',
  },
}
SCSS
$custom: #511d92;
$custom-light: #8960b3;
$custom-dark: #000000;
JSON
{
  "hex": "#511d92",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 146
  },
  "hsl": {
    "h": 266.667,
    "s": 66.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38266,
    "c": 0.17544,
    "h": 297.3
  },
  "luminance": 0.04703
}

Semantic roles & 50–950 ramp

primary
#511D92
secondary
#8CBE4C
accent
#EA3E9D
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #511D92

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

Preview Lab → · Contrast checker → · Palette generator →

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