#511879#511879

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

Color values

HEX#511879
RGBrgb(81, 24, 121)
HSLhsl(275, 67%, 28%)
HSVhsv(275, 80%, 47%)
CMYKcmyk(33.1%, 80.2%, 0%, 52.5%)
CIE-LABlab(22.94, 43.42, -43.51)
CIE-LCHlch(22.94, 61.47, 314.94°)
OKLaboklab(35.53% 0.0919 -0.1238)
OKLCHoklch(35.53% 0.154 306.6)
XYZxyz(7.1704, 3.7832, 18.4379)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511879 #407918
analogous
#201879 #511879 #791870
triadic
#511879 #795118 #187951
tetradic
#511879 #792018 #407918 #187079
square
#511879 #792018 #407918 #187079
split-complementary
#511879 #707918 #187920
monochromatic
#11051A #2F0E46 #511879 #7322AC #9435D7

Accessibility & contrast

On white

11.95
#511879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511879
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511879#FFFFFF#000000##FFFFFF
##5118791.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511879;
/* rgb */ color: rgb(81, 24, 121);
/* oklch */ color: oklch(35.5% 0.154 306.6);
Tailwind
colors: {
  custom: {
    50: '#865ca0',
    500: '#511879',
    950: '#000000',
  },
}
SCSS
$custom: #511879;
$custom-light: #865ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#511879",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 275.258,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35534,
    "c": 0.15418,
    "h": 306.6
  },
  "luminance": 0.03783
}

Semantic roles & 50–950 ramp

primary
#511879
secondary
#6DAE3F
accent
#EA3E85
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #511879

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

Preview Lab → · Contrast checker → · Palette generator →

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