#511989#511989

#511989 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.170 H 300.7°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#511989
RGBrgb(81, 25, 137)
HSLhsl(270, 69%, 32%)
HSVhsv(270, 82%, 54%)
CMYKcmyk(40.9%, 81.8%, 0%, 46.3%)
CIE-LABlab(24.48, 46.93, -51.09)
CIE-LCHlch(24.48, 69.38, 312.57°)
OKLaboklab(37.05% 0.0866 -0.1461)
OKLCHoklch(37.05% 0.17 300.7)
XYZxyz(8.2552, 4.2507, 24.0476)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511989 #518919
analogous
#191989 #511989 #891989
triadic
#511989 #895119 #198951
tetradic
#511989 #891919 #518919 #198989
square
#511989 #891919 #518919 #198989
split-complementary
#511989 #898919 #198919
monochromatic
#140621 #321055 #511989 #7022BD #8E40DC

Accessibility & contrast

On white

11.35
#511989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#511989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511989
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511989#FFFFFF#000000##FFFFFF
##5119891.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8C
Deuteranopia (green-blind)
#003987
Tritanopia (blue-blind)
#443851
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #511989;
/* rgb */ color: rgb(81, 25, 137);
/* oklch */ color: oklch(37.0% 0.170 300.7);
Tailwind
colors: {
  custom: {
    50: '#885dac',
    500: '#511989',
    950: '#000000',
  },
}
SCSS
$custom: #511989;
$custom-light: #885dac;
$custom-dark: #000000;
JSON
{
  "hex": "#511989",
  "rgb": {
    "r": 81,
    "g": 25,
    "b": 137
  },
  "hsl": {
    "h": 270,
    "s": 69.136,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37046,
    "c": 0.16979,
    "h": 300.7
  },
  "luminance": 0.04251
}

Semantic roles & 50–950 ramp

primary
#511989
secondary
#7FBC41
accent
#EC3C94
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511989

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

Preview Lab → · Contrast checker → · Palette generator →

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