#511070#511070

#511070 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 34.1% C 0.153 H 311.3°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#511070
RGBrgb(81, 16, 112)
HSLhsl(281, 75%, 25%)
HSVhsv(281, 86%, 44%)
CMYKcmyk(27.7%, 85.7%, 0%, 56.1%)
CIE-LABlab(21.17, 44.28, -40.61)
CIE-LCHlch(21.17, 60.09, 317.48°)
OKLaboklab(34.06% 0.1011 -0.1152)
OKLCHoklch(34.06% 0.153 311.3)
XYZxyz(6.5027, 3.2899, 15.6186)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511070 #2F7010
analogous
#211070 #511070 #70105F
triadic
#511070 #705110 #107051
tetradic
#511070 #702110 #2F7010 #105F70
square
#511070 #702110 #2F7010 #105F70
split-complementary
#511070 #5F7010 #107021
monochromatic
#13041B #2A083A #511070 #7818A6 #9E1FDB

Accessibility & contrast

On white

12.67
#511070 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#511070 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511070
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511070#FFFFFF#000000##FFFFFF
##5110701.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003073
Deuteranopia (green-blind)
#00346E
Tritanopia (blue-blind)
#4D2941
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511070;
/* rgb */ color: rgb(81, 16, 112);
/* oklch */ color: oklch(34.1% 0.153 311.3);
Tailwind
colors: {
  custom: {
    50: '#86589a',
    500: '#511070',
    950: '#000000',
  },
}
SCSS
$custom: #511070;
$custom-light: #86589a;
$custom-dark: #000000;
JSON
{
  "hex": "#511070",
  "rgb": {
    "r": 81,
    "g": 16,
    "b": 112
  },
  "hsl": {
    "h": 280.625,
    "s": 75,
    "l": 25.098
  },
  "oklch": {
    "l": 0.34058,
    "c": 0.15324,
    "h": 311.3
  },
  "luminance": 0.0329
}

Semantic roles & 50–950 ramp

primary
#511070
secondary
#59A834
accent
#F23673
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511070

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

Preview Lab → · Contrast checker → · Palette generator →

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