#511984#511984

#511984 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.165 H 302.4°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#511984
RGBrgb(81, 25, 132)
HSLhsl(271, 68%, 31%)
HSVhsv(271, 81%, 52%)
CMYKcmyk(38.6%, 81.1%, 0%, 48.2%)
CIE-LABlab(24.03, 45.69, -48.69)
CIE-LCHlch(24.03, 66.78, 313.18°)
OKLaboklab(36.59% 0.0881 -0.139)
OKLCHoklch(36.59% 0.165 302.4)
XYZxyz(7.9048, 4.1105, 22.2023)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511984 #4C8419
analogous
#1B1984 #511984 #841981
triadic
#511984 #845119 #198451
tetradic
#511984 #841B19 #4C8419 #198184
square
#511984 #841B19 #4C8419 #198184
split-complementary
#511984 #818419 #19841B
monochromatic
#12061D #310F51 #511984 #7123B7 #8F3DDA

Accessibility & contrast

On white

11.52
#511984 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#511984 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511984
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511984#FFFFFF#000000##FFFFFF
##5119841.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003887
Deuteranopia (green-blind)
#003982
Tritanopia (blue-blind)
#46364F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #511984;
/* rgb */ color: rgb(81, 25, 132);
/* oklch */ color: oklch(36.6% 0.165 302.4);
Tailwind
colors: {
  custom: {
    50: '#875da9',
    500: '#511984',
    950: '#000000',
  },
}
SCSS
$custom: #511984;
$custom-light: #875da9;
$custom-dark: #000000;
JSON
{
  "hex": "#511984",
  "rgb": {
    "r": 81,
    "g": 25,
    "b": 132
  },
  "hsl": {
    "h": 271.402,
    "s": 68.153,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36594,
    "c": 0.16457,
    "h": 302.4
  },
  "luminance": 0.04111
}

Semantic roles & 50–950 ramp

primary
#511984
secondary
#7AB841
accent
#EB3D90
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511984

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

Preview Lab → · Contrast checker → · Palette generator →

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