#511480#511480

#511480 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.8% C 0.165 H 304.4°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#511480
RGBrgb(81, 20, 128)
HSLhsl(274, 73%, 29%)
HSVhsv(274, 84%, 50%)
CMYKcmyk(36.7%, 84.4%, 0%, 49.8%)
CIE-LABlab(23.03, 46.61, -47.82)
CIE-LCHlch(23.03, 66.77, 314.27°)
OKLaboklab(35.78% 0.0933 -0.1364)
OKLCHoklch(35.78% 0.165 304.4)
XYZxyz(7.5389, 3.8082, 20.7558)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511480 #438014
analogous
#1B1480 #511480 #801479
triadic
#511480 #805114 #148051
tetradic
#511480 #801B14 #438014 #147980
square
#511480 #801B14 #438014 #147980
split-complementary
#511480 #798014 #14801B
monochromatic
#11041A #300C4B #511480 #721CB5 #9330DF

Accessibility & contrast

On white

11.92
#511480 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#511480 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511480
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511480#FFFFFF#000000##FFFFFF
##5114801.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003683
Deuteranopia (green-blind)
#00377E
Tritanopia (blue-blind)
#48324B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #511480;
/* rgb */ color: rgb(81, 20, 128);
/* oklch */ color: oklch(35.8% 0.165 304.4);
Tailwind
colors: {
  custom: {
    50: '#875ba6',
    500: '#511480',
    950: '#000000',
  },
}
SCSS
$custom: #511480;
$custom-light: #875ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#511480",
  "rgb": {
    "r": 81,
    "g": 20,
    "b": 128
  },
  "hsl": {
    "h": 273.889,
    "s": 72.973,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35783,
    "c": 0.16525,
    "h": 304.4
  },
  "luminance": 0.03808
}

Semantic roles & 50–950 ramp

primary
#511480
secondary
#70B53B
accent
#F03888
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #511480

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

Preview Lab → · Contrast checker → · Palette generator →

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