#511A5E#511A5E

#511A5E is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.6% C 0.124 H 319.4°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#511A5E
RGBrgb(81, 26, 94)
HSLhsl(289, 57%, 24%)
HSVhsv(289, 72%, 37%)
CMYKcmyk(13.8%, 72.3%, 0%, 63.1%)
CIE-LABlab(21.19, 36.34, -28.79)
CIE-LCHlch(21.19, 46.36, 321.61°)
OKLaboklab(33.64% 0.0939 -0.0806)
OKLCHoklch(33.64% 0.124 319.4)
XYZxyz(5.7829, 3.2965, 10.9192)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A5E #275E1A
analogous
#2F1A5E #511A5E #5E1A49
triadic
#511A5E #5E511A #1A5E51
tetradic
#511A5E #5E2F1A #275E1A #1A495E
square
#511A5E #5E2F1A #275E1A #1A495E
split-complementary
#511A5E #495E1A #1A5E2F
monochromatic
#150718 #280D2E #511A5E #7A278E #A435BE

Accessibility & contrast

On white

12.66
#511A5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#511A5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A5E
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A5E#FFFFFF#000000##FFFFFF
##511A5E1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022F60
Deuteranopia (green-blind)
#1F355C
Tritanopia (blue-blind)
#512639
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511a5e;
/* rgb */ color: rgb(81, 26, 94);
/* oklch */ color: oklch(33.6% 0.124 319.4);
Tailwind
colors: {
  custom: {
    50: '#845c8c',
    500: '#511a5e',
    950: '#000000',
  },
}
SCSS
$custom: #511a5e;
$custom-light: #845c8c;
$custom-dark: #000000;
JSON
{
  "hex": "#511a5e",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 94
  },
  "hsl": {
    "h": 288.529,
    "s": 56.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.33644,
    "c": 0.12373,
    "h": 319.4
  },
  "luminance": 0.03296
}

Semantic roles & 50–950 ramp

primary
#511A5E
secondary
#509440
accent
#E04865
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511A5E

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

Preview Lab → · Contrast checker → · Palette generator →

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