#511A7C#511A7C

#511A7C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.155 H 305.2°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#511A7C
RGBrgb(81, 26, 124)
HSLhsl(274, 65%, 29%)
HSVhsv(274, 79%, 49%)
CMYKcmyk(34.7%, 79%, 0%, 51.4%)
CIE-LABlab(23.48, 43.31, -44.54)
CIE-LCHlch(23.48, 62.13, 314.20°)
OKLaboklab(35.99% 0.0893 -0.1268)
OKLCHoklch(35.99% 0.155 305.2)
XYZxyz(7.4000, 3.9434, 19.4362)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A7C #457C1A
analogous
#201A7C #511A7C #7C1A76
triadic
#511A7C #7C511A #1A7C51
tetradic
#511A7C #7C201A #457C1A #1A767C
square
#511A7C #7C201A #457C1A #1A767C
split-complementary
#511A7C #767C1A #1A7C20
monochromatic
#110519 #300F49 #511A7C #7225AF #923BD6

Accessibility & contrast

On white

11.74
#511A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#511A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A7C
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A7C#FFFFFF#000000##FFFFFF
##511A7C1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#00387A
Tritanopia (blue-blind)
#49334A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #511a7c;
/* rgb */ color: rgb(81, 26, 124);
/* oklch */ color: oklch(36.0% 0.155 305.2);
Tailwind
colors: {
  custom: {
    50: '#875da3',
    500: '#511a7c',
    950: '#000000',
  },
}
SCSS
$custom: #511a7c;
$custom-light: #875da3;
$custom-dark: #000000;
JSON
{
  "hex": "#511a7c",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 124
  },
  "hsl": {
    "h": 273.673,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35993,
    "c": 0.15511,
    "h": 305.2
  },
  "luminance": 0.03943
}

Semantic roles & 50–950 ramp

primary
#511A7C
secondary
#72B042
accent
#E8408A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #511A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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