#511950#511950

#511950 is a dark, moderate purple. Relative luminance 0.030; OKLCH L 32.6% C 0.111 H 328.5°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#511950
RGBrgb(81, 25, 80)
HSLhsl(301, 53%, 21%)
HSVhsv(301, 69%, 32%)
CMYKcmyk(0%, 69.1%, 1.2%, 68.2%)
CIE-LABlab(20.14, 33.90, -21.10)
CIE-LCHlch(20.14, 39.93, 328.10°)
OKLaboklab(32.6% 0.0949 -0.0582)
OKLCHoklch(32.6% 0.111 328.5)
XYZxyz(5.1889, 3.0241, 7.8983)
Luminance0.0302 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511950 #19511A
analogous
#361951 #511950 #511934
triadic
#511950 #505119 #195051
tetradic
#511950 #513619 #19511A #193451
square
#511950 #513619 #19511A #193451
split-complementary
#511950 #345119 #195136
monochromatic
#170717 #220B22 #511950 #80277E #AF36AC

Accessibility & contrast

On white

13.09
#511950 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#511950 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511950
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511950#FFFFFF#000000##FFFFFF
##5119501.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132C52
Deuteranopia (green-blind)
#27334E
Tritanopia (blue-blind)
#542032
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #511950;
/* rgb */ color: rgb(81, 25, 80);
/* oklch */ color: oklch(32.6% 0.111 328.5);
Tailwind
colors: {
  custom: {
    50: '#845b81',
    500: '#511950',
    950: '#000000',
  },
}
SCSS
$custom: #511950;
$custom-light: #845b81;
$custom-dark: #000000;
JSON
{
  "hex": "#511950",
  "rgb": {
    "r": 81,
    "g": 25,
    "b": 80
  },
  "hsl": {
    "h": 301.071,
    "s": 52.83,
    "l": 20.784
  },
  "oklch": {
    "l": 0.32598,
    "c": 0.11136,
    "h": 328.5
  },
  "luminance": 0.03024
}

Semantic roles & 50–950 ramp

primary
#511950
secondary
#3E8740
accent
#DC4E4C
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511950

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

Preview Lab → · Contrast checker → · Palette generator →

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