#511980#511980

#511980 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.160 H 303.8°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#511980
RGBrgb(81, 25, 128)
HSLhsl(273, 67%, 30%)
HSVhsv(273, 80%, 50%)
CMYKcmyk(36.7%, 80.5%, 0%, 49.8%)
CIE-LABlab(23.68, 44.71, -46.75)
CIE-LCHlch(23.68, 64.69, 313.72°)
OKLaboklab(36.24% 0.0892 -0.1333)
OKLCHoklch(36.24% 0.16 303.8)
XYZxyz(7.6363, 4.0031, 20.7883)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511980 #488019
analogous
#1D1980 #511980 #80197C
triadic
#511980 #805119 #198051
tetradic
#511980 #801D19 #488019 #197C80
square
#511980 #801D19 #488019 #197C80
split-complementary
#511980 #7C8019 #19801D
monochromatic
#10051A #310F4D #511980 #7123B3 #913BD9

Accessibility & contrast

On white

11.66
#511980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#511980 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511980
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511980#FFFFFF#000000##FFFFFF
##5119801.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.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: #511980;
/* rgb */ color: rgb(81, 25, 128);
/* oklch */ color: oklch(36.2% 0.160 303.8);
Tailwind
colors: {
  custom: {
    50: '#875da6',
    500: '#511980',
    950: '#000000',
  },
}
SCSS
$custom: #511980;
$custom-light: #875da6;
$custom-dark: #000000;
JSON
{
  "hex": "#511980",
  "rgb": {
    "r": 81,
    "g": 25,
    "b": 128
  },
  "hsl": {
    "h": 272.621,
    "s": 67.32,
    "l": 30
  },
  "oklch": {
    "l": 0.36239,
    "c": 0.16039,
    "h": 303.8
  },
  "luminance": 0.04003
}

Semantic roles & 50–950 ramp

primary
#511980
secondary
#75B441
accent
#EA3E8C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #511980

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

Preview Lab → · Contrast checker → · Palette generator →

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