#511A88#511A88

#511A88 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.168 H 300.9°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#511A88
RGBrgb(81, 26, 136)
HSLhsl(270, 68%, 32%)
HSVhsv(270, 81%, 53%)
CMYKcmyk(40.4%, 80.9%, 0%, 46.7%)
CIE-LABlab(24.53, 46.28, -50.39)
CIE-LCHlch(24.53, 68.42, 312.57°)
OKLaboklab(37.05% 0.0861 -0.144)
OKLCHoklch(37.05% 0.168 300.9)
XYZxyz(8.2056, 4.2656, 23.6788)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A88 #51881A
analogous
#1A1A88 #511A88 #881A88
triadic
#511A88 #88511A #1A8851
tetradic
#511A88 #881A1A #51881A #1A8888
square
#511A88 #881A1A #51881A #1A8888
split-complementary
#511A88 #88881A #1A881A
monochromatic
#140621 #321055 #511A88 #7024BB #8E42DB

Accessibility & contrast

On white

11.33
#511A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511A88
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A88#FFFFFF#000000##FFFFFF
##511A881.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8B
Deuteranopia (green-blind)
#003A86
Tritanopia (blue-blind)
#443851
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #511a88;
/* rgb */ color: rgb(81, 26, 136);
/* oklch */ color: oklch(37.1% 0.168 300.9);
Tailwind
colors: {
  custom: {
    50: '#885eac',
    500: '#511a88',
    950: '#000000',
  },
}
SCSS
$custom: #511a88;
$custom-light: #885eac;
$custom-dark: #000000;
JSON
{
  "hex": "#511a88",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 136
  },
  "hsl": {
    "h": 270,
    "s": 67.901,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37051,
    "c": 0.16776,
    "h": 300.9
  },
  "luminance": 0.04266
}

Semantic roles & 50–950 ramp

primary
#511A88
secondary
#7FBB43
accent
#EB3D94
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511A88

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

Preview Lab → · Contrast checker → · Palette generator →

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