#511380#511380

#511380 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.166 H 304.5°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#511380
RGBrgb(81, 19, 128)
HSLhsl(274, 74%, 29%)
HSVhsv(274, 85%, 50%)
CMYKcmyk(36.7%, 85.2%, 0%, 49.8%)
CIE-LABlab(22.91, 46.96, -48.01)
CIE-LCHlch(22.91, 67.16, 314.36°)
OKLaboklab(35.7% 0.094 -0.1369)
OKLCHoklch(35.7% 0.166 304.5)
XYZxyz(7.5216, 3.7736, 20.7500)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511380 #428013
analogous
#1A1380 #511380 #801379
triadic
#511380 #805113 #138051
tetradic
#511380 #801A13 #428013 #137980
square
#511380 #801A13 #428013 #137980
split-complementary
#511380 #798013 #13801A
monochromatic
#11041B #2F0B4B #511380 #731BB5 #932DE0

Accessibility & contrast

On white

11.97
#511380 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#511380 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511380
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511380#FFFFFF#000000##FFFFFF
##5113801.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511380;
/* rgb */ color: rgb(81, 19, 128);
/* oklch */ color: oklch(35.7% 0.166 304.5);
Tailwind
colors: {
  custom: {
    50: '#875aa6',
    500: '#511380',
    950: '#000000',
  },
}
SCSS
$custom: #511380;
$custom-light: #875aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#511380",
  "rgb": {
    "r": 81,
    "g": 19,
    "b": 128
  },
  "hsl": {
    "h": 274.128,
    "s": 74.15,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35701,
    "c": 0.16613,
    "h": 304.5
  },
  "luminance": 0.03774
}

Semantic roles & 50–950 ramp

primary
#511380
secondary
#6FB539
accent
#F13787
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #511380

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

Preview Lab → · Contrast checker → · Palette generator →

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