#511472#511472

#511472 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.151 H 310.0°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#511472
RGBrgb(81, 20, 114)
HSLhsl(279, 70%, 26%)
HSVhsv(279, 82%, 45%)
CMYKcmyk(28.9%, 82.5%, 0%, 55.3%)
CIE-LABlab(21.82, 43.34, -40.85)
CIE-LCHlch(21.82, 59.56, 316.69°)
OKLaboklab(34.56% 0.0973 -0.1159)
OKLCHoklch(34.56% 0.151 310)
XYZxyz(6.6802, 3.4647, 16.2332)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511472 #357214
analogous
#221472 #511472 #721464
triadic
#511472 #725114 #147251
tetradic
#511472 #722214 #357214 #146472
square
#511472 #722214 #357214 #146472
split-complementary
#511472 #647214 #147222
monochromatic
#12051A #2C0B3E #511472 #761DA6 #9B27D9

Accessibility & contrast

On white

12.40
#511472 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#511472 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511472
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511472#FFFFFF#000000##FFFFFF
##5114721.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003275
Deuteranopia (green-blind)
#003570
Tritanopia (blue-blind)
#4C2C43
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511472;
/* rgb */ color: rgb(81, 20, 114);
/* oklch */ color: oklch(34.6% 0.151 310.0);
Tailwind
colors: {
  custom: {
    50: '#865a9b',
    500: '#511472',
    950: '#000000',
  },
}
SCSS
$custom: #511472;
$custom-light: #865a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#511472",
  "rgb": {
    "r": 81,
    "g": 20,
    "b": 114
  },
  "hsl": {
    "h": 278.936,
    "s": 70.149,
    "l": 26.275
  },
  "oklch": {
    "l": 0.34563,
    "c": 0.15131,
    "h": 310
  },
  "luminance": 0.03465
}

Semantic roles & 50–950 ramp

primary
#511472
secondary
#60A839
accent
#ED3B79
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511472

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

Preview Lab → · Contrast checker → · Palette generator →

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