#511880#511880

#511880 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.161 H 303.9°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#511880
RGBrgb(81, 24, 128)
HSLhsl(273, 68%, 30%)
HSVhsv(273, 81%, 50%)
CMYKcmyk(36.7%, 81.3%, 0%, 49.8%)
CIE-LABlab(23.54, 45.11, -46.97)
CIE-LCHlch(23.54, 65.13, 313.84°)
OKLaboklab(36.14% 0.0901 -0.134)
OKLCHoklch(36.14% 0.161 303.9)
XYZxyz(7.6153, 3.9611, 20.7813)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511880 #478018
analogous
#1D1880 #511880 #80187B
triadic
#511880 #805118 #188051
tetradic
#511880 #801D18 #478018 #187B80
square
#511880 #801D18 #478018 #187B80
split-complementary
#511880 #7B8018 #18801D
monochromatic
#10051A #300E4C #511880 #7222B4 #9139DA

Accessibility & contrast

On white

11.72
#511880 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#511880 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511880
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511880#FFFFFF#000000##FFFFFF
##5118801.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003783
Deuteranopia (green-blind)
#00387E
Tritanopia (blue-blind)
#48344C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #511880;
/* rgb */ color: rgb(81, 24, 128);
/* oklch */ color: oklch(36.1% 0.161 303.9);
Tailwind
colors: {
  custom: {
    50: '#875ca6',
    500: '#511880',
    950: '#000000',
  },
}
SCSS
$custom: #511880;
$custom-light: #875ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#511880",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 128
  },
  "hsl": {
    "h": 272.885,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.36142,
    "c": 0.16142,
    "h": 303.9
  },
  "luminance": 0.03961
}

Semantic roles & 50–950 ramp

primary
#511880
secondary
#74B440
accent
#EB3D8B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #511880

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

Preview Lab → · Contrast checker → · Palette generator →

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