#511B8C#511B8C

#511B8C is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.171 H 299.4°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#511B8C
RGBrgb(81, 27, 140)
HSLhsl(269, 68%, 33%)
HSVhsv(269, 81%, 55%)
CMYKcmyk(42.1%, 80.7%, 0%, 45.1%)
CIE-LABlab(25.03, 46.88, -52.06)
CIE-LCHlch(25.03, 70.06, 312.00°)
OKLaboklab(37.51% 0.0841 -0.1489)
OKLCHoklch(37.51% 0.171 299.4)
XYZxyz(8.5177, 4.4265, 25.2115)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B8C #568C1B
analogous
#1B1D8C #511B8C #8A1B8C
triadic
#511B8C #8C511B #1B8C51
tetradic
#511B8C #8C1B1D #568C1B #1B8C8A
square
#511B8C #8C1B1D #568C1B #1B8C8A
split-complementary
#511B8C #8C8A1B #1D8C1B
monochromatic
#160725 #331159 #511B8C #6F25BF #8D46DB

Accessibility & contrast

On white

11.14
#511B8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#511B8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B8C
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B8C#FFFFFF#000000##FFFFFF
##511B8C1.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#003A8A
Tritanopia (blue-blind)
#433A54
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #511b8c;
/* rgb */ color: rgb(81, 27, 140);
/* oklch */ color: oklch(37.5% 0.171 299.4);
Tailwind
colors: {
  custom: {
    50: '#885faf',
    500: '#511b8c',
    950: '#000000',
  },
}
SCSS
$custom: #511b8c;
$custom-light: #885faf;
$custom-dark: #000000;
JSON
{
  "hex": "#511b8c",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 140
  },
  "hsl": {
    "h": 268.673,
    "s": 67.665,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37514,
    "c": 0.171,
    "h": 299.4
  },
  "luminance": 0.04427
}

Semantic roles & 50–950 ramp

primary
#511B8C
secondary
#84BD46
accent
#EB3D98
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511B8C

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

Preview Lab → · Contrast checker → · Palette generator →

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