#511470#511470

#511470 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.149 H 310.9°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#511470
RGBrgb(81, 20, 112)
HSLhsl(280, 70%, 26%)
HSVhsv(280, 82%, 44%)
CMYKcmyk(27.7%, 82.1%, 0%, 56.1%)
CIE-LABlab(21.65, 42.88, -39.83)
CIE-LCHlch(21.65, 58.52, 317.12°)
OKLaboklab(34.4% 0.0977 -0.1129)
OKLCHoklch(34.4% 0.149 310.9)
XYZxyz(6.5676, 3.4197, 15.6402)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511470 #337014
analogous
#231470 #511470 #701461
triadic
#511470 #705114 #147051
tetradic
#511470 #702314 #337014 #146170
square
#511470 #702314 #337014 #146170
split-complementary
#511470 #617014 #147023
monochromatic
#13051A #2B0B3C #511470 #771DA4 #9C27D8

Accessibility & contrast

On white

12.47
#511470 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511470
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511470#FFFFFF#000000##FFFFFF
##5114701.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511470;
/* rgb */ color: rgb(81, 20, 112);
/* oklch */ color: oklch(34.4% 0.149 310.9);
Tailwind
colors: {
  custom: {
    50: '#865a9a',
    500: '#511470',
    950: '#000000',
  },
}
SCSS
$custom: #511470;
$custom-light: #865a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#511470",
  "rgb": {
    "r": 81,
    "g": 20,
    "b": 112
  },
  "hsl": {
    "h": 279.783,
    "s": 69.697,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34396,
    "c": 0.14934,
    "h": 310.9
  },
  "luminance": 0.03419
}

Semantic roles & 50–950 ramp

primary
#511470
secondary
#5EA639
accent
#ED3B77
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511470

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

Preview Lab → · Contrast checker → · Palette generator →

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