#511170#511170

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

Color values

HEX#511170
RGBrgb(81, 17, 112)
HSLhsl(280, 74%, 25%)
HSVhsv(280, 85%, 44%)
CMYKcmyk(27.7%, 84.8%, 0%, 56.1%)
CIE-LABlab(21.28, 43.95, -40.42)
CIE-LCHlch(21.28, 59.72, 317.40°)
OKLaboklab(34.14% 0.1003 -0.1146)
OKLCHoklch(34.14% 0.152 311.2)
XYZxyz(6.5179, 3.3202, 15.6236)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511170 #307011
analogous
#211170 #511170 #70115F
triadic
#511170 #705111 #117051
tetradic
#511170 #702111 #307011 #115F70
square
#511170 #702111 #307011 #115F70
split-complementary
#511170 #5F7011 #117021
monochromatic
#13041B #2B093B #511170 #7719A5 #9E21DA

Accessibility & contrast

On white

12.62
#511170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511170
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511170#FFFFFF#000000##FFFFFF
##5111701.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003073
Deuteranopia (green-blind)
#00346E
Tritanopia (blue-blind)
#4D2A41
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511170;
/* rgb */ color: rgb(81, 17, 112);
/* oklch */ color: oklch(34.1% 0.152 311.2);
Tailwind
colors: {
  custom: {
    50: '#86599a',
    500: '#511170',
    950: '#000000',
  },
}
SCSS
$custom: #511170;
$custom-light: #86599a;
$custom-dark: #000000;
JSON
{
  "hex": "#511170",
  "rgb": {
    "r": 81,
    "g": 17,
    "b": 112
  },
  "hsl": {
    "h": 280.421,
    "s": 73.643,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34138,
    "c": 0.15231,
    "h": 311.2
  },
  "luminance": 0.0332
}

Semantic roles & 50–950 ramp

primary
#511170
secondary
#5BA735
accent
#F03774
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511170

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

Preview Lab → · Contrast checker → · Palette generator →

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