#511A7F#511A7F

#511A7F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.158 H 304.0°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#511A7F
RGBrgb(81, 26, 127)
HSLhsl(273, 66%, 30%)
HSVhsv(273, 80%, 50%)
CMYKcmyk(36.2%, 79.5%, 0%, 50.2%)
CIE-LABlab(23.74, 44.05, -46.02)
CIE-LCHlch(23.74, 63.71, 313.75°)
OKLaboklab(36.25% 0.0886 -0.1312)
OKLCHoklch(36.25% 0.158 304)
XYZxyz(7.5926, 4.0204, 20.4506)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A7F #487F1A
analogous
#1E1A7F #511A7F #7F1A7B
triadic
#511A7F #7F511A #1A7F51
tetradic
#511A7F #7F1E1A #487F1A #1A7B7F
square
#511A7F #7F1E1A #487F1A #1A7B7F
split-complementary
#511A7F #7B7F1A #1A7F1E
monochromatic
#100519 #31104C #511A7F #7124B2 #913CD7

Accessibility & contrast

On white

11.64
#511A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#511A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A7F
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A7F#FFFFFF#000000##FFFFFF
##511A7F1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#48344C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #511a7f;
/* rgb */ color: rgb(81, 26, 127);
/* oklch */ color: oklch(36.3% 0.158 304.0);
Tailwind
colors: {
  custom: {
    50: '#875da5',
    500: '#511a7f',
    950: '#000000',
  },
}
SCSS
$custom: #511a7f;
$custom-light: #875da5;
$custom-dark: #000000;
JSON
{
  "hex": "#511a7f",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 127
  },
  "hsl": {
    "h": 272.673,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.36252,
    "c": 0.15828,
    "h": 304
  },
  "luminance": 0.0402
}

Semantic roles & 50–950 ramp

primary
#511A7F
secondary
#75B342
accent
#E93F8C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #511A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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