#511A87#511A87

#511A87 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.167 H 301.2°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#511A87
RGBrgb(81, 26, 135)
HSLhsl(270, 68%, 32%)
HSVhsv(270, 81%, 53%)
CMYKcmyk(40%, 80.7%, 0%, 47.1%)
CIE-LABlab(24.44, 46.03, -49.91)
CIE-LCHlch(24.44, 67.90, 312.68°)
OKLaboklab(36.96% 0.0864 -0.1426)
OKLCHoklch(36.96% 0.167 301.2)
XYZxyz(8.1348, 4.2373, 23.3063)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A87 #50871A
analogous
#1A1A87 #511A87 #871A87
triadic
#511A87 #87511A #1A8751
tetradic
#511A87 #871A1A #50871A #1A8787
square
#511A87 #871A1A #50871A #1A8787
split-complementary
#511A87 #87871A #1A871A
monochromatic
#130620 #321054 #511A87 #7024BA #8E41DA

Accessibility & contrast

On white

11.37
#511A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#511A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A87
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A87#FFFFFF#000000##FFFFFF
##511A871.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003985
Tritanopia (blue-blind)
#453850
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #511a87;
/* rgb */ color: rgb(81, 26, 135);
/* oklch */ color: oklch(37.0% 0.167 301.2);
Tailwind
colors: {
  custom: {
    50: '#885eab',
    500: '#511a87',
    950: '#000000',
  },
}
SCSS
$custom: #511a87;
$custom-light: #885eab;
$custom-dark: #000000;
JSON
{
  "hex": "#511a87",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 270.275,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36961,
    "c": 0.16672,
    "h": 301.2
  },
  "luminance": 0.04237
}

Semantic roles & 50–950 ramp

primary
#511A87
secondary
#7EBA42
accent
#EB3D93
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511A87

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

Preview Lab → · Contrast checker → · Palette generator →

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