#511071#511071

#511071 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 34.1% C 0.154 H 310.8°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#511071
RGBrgb(81, 16, 113)
HSLhsl(280, 75%, 25%)
HSVhsv(280, 86%, 44%)
CMYKcmyk(28.3%, 85.8%, 0%, 55.7%)
CIE-LABlab(21.25, 44.51, -41.12)
CIE-LCHlch(21.25, 60.59, 317.27°)
OKLaboklab(34.14% 0.1008 -0.1167)
OKLCHoklch(34.14% 0.154 310.8)
XYZxyz(6.5587, 3.3123, 15.9134)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511071 #307110
analogous
#201071 #511071 #711060
triadic
#511071 #715110 #107151
tetradic
#511071 #712010 #307110 #106071
square
#511071 #712010 #307110 #106071
split-complementary
#511071 #607110 #107120
monochromatic
#13041B #2B083B #511071 #7718A7 #9E1FDC

Accessibility & contrast

On white

12.63
#511071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#511071 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511071
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511071#FFFFFF#000000##FFFFFF
##5110711.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003074
Deuteranopia (green-blind)
#00346F
Tritanopia (blue-blind)
#4D2A42
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511071;
/* rgb */ color: rgb(81, 16, 113);
/* oklch */ color: oklch(34.1% 0.154 310.8);
Tailwind
colors: {
  custom: {
    50: '#86589a',
    500: '#511071',
    950: '#000000',
  },
}
SCSS
$custom: #511071;
$custom-light: #86589a;
$custom-dark: #000000;
JSON
{
  "hex": "#511071",
  "rgb": {
    "r": 81,
    "g": 16,
    "b": 113
  },
  "hsl": {
    "h": 280.206,
    "s": 75.194,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34143,
    "c": 0.15419,
    "h": 310.8
  },
  "luminance": 0.03312
}

Semantic roles & 50–950 ramp

primary
#511071
secondary
#5BA934
accent
#F23674
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511071

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

Preview Lab → · Contrast checker → · Palette generator →

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