#511F78#511F78

#511F78 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.145 H 306.0°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#511F78
RGBrgb(81, 31, 120)
HSLhsl(274, 59%, 30%)
HSVhsv(274, 74%, 47%)
CMYKcmyk(32.5%, 74.2%, 0%, 52.9%)
CIE-LABlab(23.95, 40.06, -41.23)
CIE-LCHlch(23.95, 57.49, 314.18°)
OKLaboklab(36.22% 0.0851 -0.1171)
OKLCHoklch(36.22% 0.145 306)
XYZxyz(7.2727, 4.0854, 18.1711)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F78 #46781F
analogous
#251F78 #511F78 #781F73
triadic
#511F78 #78511F #1F7851
tetradic
#511F78 #78251F #46781F #1F7378
square
#511F78 #78251F #46781F #1F7378
split-complementary
#511F78 #73781F #1F7825
monochromatic
#100618 #301247 #511F78 #722CA9 #9143CE

Accessibility & contrast

On white

11.56
#511F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#511F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F78
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F78#FFFFFF#000000##FFFFFF
##511F781.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377B
Deuteranopia (green-blind)
#003976
Tritanopia (blue-blind)
#4A3449
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #511f78;
/* rgb */ color: rgb(81, 31, 120);
/* oklch */ color: oklch(36.2% 0.145 306.0);
Tailwind
colors: {
  custom: {
    50: '#865fa0',
    500: '#511f78',
    950: '#000000',
  },
}
SCSS
$custom: #511f78;
$custom-light: #865fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#511f78",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 120
  },
  "hsl": {
    "h": 273.708,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.36222,
    "c": 0.14477,
    "h": 306
  },
  "luminance": 0.04085
}

Semantic roles & 50–950 ramp

primary
#511F78
secondary
#73AB47
accent
#E2468A
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #511F78

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

Preview Lab → · Contrast checker → · Palette generator →

#511F78 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva