#511C7F#511C7F

#511C7F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.156 H 303.8°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#511C7F
RGBrgb(81, 28, 127)
HSLhsl(272, 64%, 30%)
HSVhsv(272, 78%, 50%)
CMYKcmyk(36.2%, 78%, 0%, 50.2%)
CIE-LABlab(24.04, 43.19, -45.53)
CIE-LCHlch(24.04, 62.76, 313.49°)
OKLaboklab(36.46% 0.0867 -0.1297)
OKLCHoklch(36.46% 0.156 303.8)
XYZxyz(7.6385, 4.1122, 20.4659)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C7F #4A7F1C
analogous
#1F1C7F #511C7F #7F1C7B
triadic
#511C7F #7F511C #1C7F51
tetradic
#511C7F #7F1F1C #4A7F1C #1C7B7F
square
#511C7F #7F1F1C #4A7F1C #1C7B7F
split-complementary
#511C7F #7B7F1C #1C7F1F
monochromatic
#11061B #31114D #511C7F #7127B1 #9040D5

Accessibility & contrast

On white

11.52
#511C7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#511C7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511C7F
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C7F#FFFFFF#000000##FFFFFF
##511C7F1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#00397D
Tritanopia (blue-blind)
#48354C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #511c7f;
/* rgb */ color: rgb(81, 28, 127);
/* oklch */ color: oklch(36.5% 0.156 303.8);
Tailwind
colors: {
  custom: {
    50: '#875ea5',
    500: '#511c7f',
    950: '#000000',
  },
}
SCSS
$custom: #511c7f;
$custom-light: #875ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#511c7f",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 127
  },
  "hsl": {
    "h": 272.121,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36463,
    "c": 0.15606,
    "h": 303.8
  },
  "luminance": 0.04112
}

Semantic roles & 50–950 ramp

primary
#511C7F
secondary
#77B344
accent
#E7418E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #511C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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