#511978#511978

#511978 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.152 H 306.9°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#511978
RGBrgb(81, 25, 120)
HSLhsl(275, 66%, 28%)
HSVhsv(275, 79%, 47%)
CMYKcmyk(32.5%, 79.2%, 0%, 52.9%)
CIE-LABlab(23.00, 42.77, -42.77)
CIE-LCHlch(23.00, 60.49, 315.00°)
OKLaboklab(35.55% 0.0912 -0.1216)
OKLCHoklch(35.55% 0.152 306.9)
XYZxyz(7.1304, 3.8007, 18.1236)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511978 #407819
analogous
#211978 #511978 #78196F
triadic
#511978 #785119 #197851
tetradic
#511978 #782119 #407819 #196F78
square
#511978 #782119 #407819 #196F78
split-complementary
#511978 #6F7819 #197821
monochromatic
#110519 #2F0E45 #511978 #7324AB #9436D5

Accessibility & contrast

On white

11.93
#511978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511978
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511978#FFFFFF#000000##FFFFFF
##5119781.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357B
Deuteranopia (green-blind)
#003776
Tritanopia (blue-blind)
#4A3148
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #511978;
/* rgb */ color: rgb(81, 25, 120);
/* oklch */ color: oklch(35.5% 0.152 306.9);
Tailwind
colors: {
  custom: {
    50: '#865ca0',
    500: '#511978',
    950: '#000000',
  },
}
SCSS
$custom: #511978;
$custom-light: #865ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#511978",
  "rgb": {
    "r": 81,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 275.368,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3555,
    "c": 0.15203,
    "h": 306.9
  },
  "luminance": 0.03801
}

Semantic roles & 50–950 ramp

primary
#511978
secondary
#6DAD40
accent
#E83F85
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040F
muted
#7D797E

Preview Lab

Preview with #511978

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

Preview Lab → · Contrast checker → · Palette generator →

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