#511970#511970

#511970 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.144 H 310.3°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#511970
RGBrgb(81, 25, 112)
HSLhsl(279, 64%, 27%)
HSVhsv(279, 78%, 44%)
CMYKcmyk(27.7%, 77.7%, 0%, 56.1%)
CIE-LABlab(22.35, 40.87, -38.69)
CIE-LCHlch(22.35, 56.27, 316.57°)
OKLaboklab(34.89% 0.0929 -0.1096)
OKLCHoklch(34.89% 0.144 310.3)
XYZxyz(6.6650, 3.6146, 15.6727)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511970 #387019
analogous
#261970 #511970 #701964
triadic
#511970 #705119 #197051
tetradic
#511970 #702619 #387019 #196470
square
#511970 #702619 #387019 #196470
split-complementary
#511970 #647019 #197026
monochromatic
#120619 #2D0E3E #511970 #7524A2 #9932D1

Accessibility & contrast

On white

12.19
#511970 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#511970 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511970
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511970#FFFFFF#000000##FFFFFF
##5119701.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003372
Deuteranopia (green-blind)
#05366E
Tritanopia (blue-blind)
#4D2D43
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511970;
/* rgb */ color: rgb(81, 25, 112);
/* oklch */ color: oklch(34.9% 0.144 310.3);
Tailwind
colors: {
  custom: {
    50: '#865c9a',
    500: '#511970',
    950: '#000000',
  },
}
SCSS
$custom: #511970;
$custom-light: #865c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#511970",
  "rgb": {
    "r": 81,
    "g": 25,
    "b": 112
  },
  "hsl": {
    "h": 278.621,
    "s": 63.504,
    "l": 26.863
  },
  "oklch": {
    "l": 0.3489,
    "c": 0.1437,
    "h": 310.3
  },
  "luminance": 0.03614
}

Semantic roles & 50–950 ramp

primary
#511970
secondary
#64A540
accent
#E7417C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #511970

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

Preview Lab → · Contrast checker → · Palette generator →

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