#511259#511259

#511259 is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.4% C 0.129 H 322.9°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#511259
RGBrgb(81, 18, 89)
HSLhsl(293, 66%, 21%)
HSVhsv(293, 80%, 35%)
CMYKcmyk(9%, 79.8%, 0%, 65.1%)
CIE-LABlab(19.65, 38.69, -27.93)
CIE-LCHlch(19.65, 47.71, 324.17°)
OKLaboklab(32.43% 0.1033 -0.078)
OKLCHoklch(32.43% 0.129 322.9)
XYZxyz(5.4126, 2.9035, 9.7246)
Luminance0.0290 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511259 #1A5912
analogous
#2D1259 #511259 #59123D
triadic
#511259 #595112 #125951
tetradic
#511259 #592D12 #1A5912 #123D59
square
#511259 #592D12 #1A5912 #123D59
split-complementary
#511259 #3D5912 #12592D
monochromatic
#170519 #230826 #511259 #7F1C8C #AE27BF

Accessibility & contrast

On white

13.29
#511259 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#511259 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511259
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511259#FFFFFF#000000##FFFFFF
##5112591.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5B
Deuteranopia (green-blind)
#1E3257
Tritanopia (blue-blind)
#521F34
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #511259;
/* rgb */ color: rgb(81, 18, 89);
/* oklch */ color: oklch(32.4% 0.129 322.9);
Tailwind
colors: {
  custom: {
    50: '#855888',
    500: '#511259',
    950: '#000000',
  },
}
SCSS
$custom: #511259;
$custom-light: #855888;
$custom-dark: #000000;
JSON
{
  "hex": "#511259",
  "rgb": {
    "r": 81,
    "g": 18,
    "b": 89
  },
  "hsl": {
    "h": 293.239,
    "s": 66.355,
    "l": 20.98
  },
  "oklch": {
    "l": 0.32433,
    "c": 0.12942,
    "h": 322.9
  },
  "luminance": 0.02903
}

Semantic roles & 50–950 ramp

primary
#511259
secondary
#409235
accent
#E93F52
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511259

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

Preview Lab → · Contrast checker → · Palette generator →

#511259 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva