#511471#511471

#511471 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.150 H 310.4°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#511471
RGBrgb(81, 20, 113)
HSLhsl(279, 70%, 26%)
HSVhsv(279, 82%, 44%)
CMYKcmyk(28.3%, 82.3%, 0%, 55.7%)
CIE-LABlab(21.73, 43.11, -40.34)
CIE-LCHlch(21.73, 59.04, 316.90°)
OKLaboklab(34.48% 0.0975 -0.1144)
OKLCHoklch(34.48% 0.15 310.4)
XYZxyz(6.6235, 3.4421, 15.9350)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511471 #347114
analogous
#221471 #511471 #711462
triadic
#511471 #715114 #147151
tetradic
#511471 #712214 #347114 #146271
square
#511471 #712214 #347114 #146271
split-complementary
#511471 #627114 #147122
monochromatic
#13051A #2C0B3D #511471 #761DA5 #9B27D9

Accessibility & contrast

On white

12.44
#511471 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511471
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511471#FFFFFF#000000##FFFFFF
##5114711.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003274
Deuteranopia (green-blind)
#00356F
Tritanopia (blue-blind)
#4D2B43
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511471;
/* rgb */ color: rgb(81, 20, 113);
/* oklch */ color: oklch(34.5% 0.150 310.4);
Tailwind
colors: {
  custom: {
    50: '#865a9a',
    500: '#511471',
    950: '#000000',
  },
}
SCSS
$custom: #511471;
$custom-light: #865a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#511471",
  "rgb": {
    "r": 81,
    "g": 20,
    "b": 113
  },
  "hsl": {
    "h": 279.355,
    "s": 69.925,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34479,
    "c": 0.15032,
    "h": 310.4
  },
  "luminance": 0.03442
}

Semantic roles & 50–950 ramp

primary
#511471
secondary
#5FA739
accent
#ED3B78
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511471

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

Preview Lab → · Contrast checker → · Palette generator →

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