#511A70#511A70

#511A70 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.142 H 310.2°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#511A70
RGBrgb(81, 26, 112)
HSLhsl(278, 62%, 27%)
HSVhsv(278, 77%, 44%)
CMYKcmyk(27.7%, 76.8%, 0%, 56.1%)
CIE-LABlab(22.51, 40.43, -38.44)
CIE-LCHlch(22.51, 55.79, 316.45°)
OKLaboklab(35% 0.0919 -0.1089)
OKLCHoklch(35% 0.142 310.2)
XYZxyz(6.6868, 3.6581, 15.6799)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A70 #39701A
analogous
#261A70 #511A70 #701A64
triadic
#511A70 #70511A #1A7051
tetradic
#511A70 #70261A #39701A #1A6470
square
#511A70 #70261A #39701A #1A6470
split-complementary
#511A70 #64701A #1A7026
monochromatic
#120619 #2D0E3E #511A70 #7526A2 #9834D0

Accessibility & contrast

On white

12.13
#511A70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#511A70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A70
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A70#FFFFFF#000000##FFFFFF
##511A701.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003372
Deuteranopia (green-blind)
#07376E
Tritanopia (blue-blind)
#4D2E43
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #511a70;
/* rgb */ color: rgb(81, 26, 112);
/* oklch */ color: oklch(35.0% 0.142 310.2);
Tailwind
colors: {
  custom: {
    50: '#855d9a',
    500: '#511a70',
    950: '#000000',
  },
}
SCSS
$custom: #511a70;
$custom-light: #855d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#511a70",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 112
  },
  "hsl": {
    "h": 278.372,
    "s": 62.319,
    "l": 27.059
  },
  "oklch": {
    "l": 0.34999,
    "c": 0.14247,
    "h": 310.2
  },
  "luminance": 0.03658
}

Semantic roles & 50–950 ramp

primary
#511A70
secondary
#65A541
accent
#E5427D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #511A70

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

Preview Lab → · Contrast checker → · Palette generator →

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