#511370#511370

#511370 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.3% C 0.150 H 311.0°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#511370
RGBrgb(81, 19, 112)
HSLhsl(280, 71%, 26%)
HSVhsv(280, 83%, 44%)
CMYKcmyk(27.7%, 83%, 0%, 56.1%)
CIE-LABlab(21.52, 43.25, -40.03)
CIE-LCHlch(21.52, 58.93, 317.21°)
OKLaboklab(34.31% 0.0986 -0.1135)
OKLCHoklch(34.31% 0.15 311)
XYZxyz(6.5503, 3.3851, 15.6344)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511370 #327013
analogous
#221370 #511370 #701360
triadic
#511370 #705113 #137051
tetradic
#511370 #702213 #327013 #136070
square
#511370 #702213 #327013 #136070
split-complementary
#511370 #607013 #137022
monochromatic
#13041A #2B0A3C #511370 #771CA4 #9D25D9

Accessibility & contrast

On white

12.52
#511370 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#511370 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511370
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511370#FFFFFF#000000##FFFFFF
##5113701.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003172
Deuteranopia (green-blind)
#00356E
Tritanopia (blue-blind)
#4D2A42
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511370;
/* rgb */ color: rgb(81, 19, 112);
/* oklch */ color: oklch(34.3% 0.150 311.0);
Tailwind
colors: {
  custom: {
    50: '#86599a',
    500: '#511370',
    950: '#000000',
  },
}
SCSS
$custom: #511370;
$custom-light: #86599a;
$custom-dark: #000000;
JSON
{
  "hex": "#511370",
  "rgb": {
    "r": 81,
    "g": 19,
    "b": 112
  },
  "hsl": {
    "h": 280,
    "s": 70.992,
    "l": 25.686
  },
  "oklch": {
    "l": 0.34306,
    "c": 0.15036,
    "h": 311
  },
  "luminance": 0.03385
}

Semantic roles & 50–950 ramp

primary
#511370
secondary
#5DA738
accent
#EE3A76
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511370

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

Preview Lab → · Contrast checker → · Palette generator →

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