#511884#511884

#511884 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.166 H 302.5°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#511884
RGBrgb(81, 24, 132)
HSLhsl(272, 69%, 31%)
HSVhsv(272, 82%, 52%)
CMYKcmyk(38.6%, 81.8%, 0%, 48.2%)
CIE-LABlab(23.90, 46.09, -48.92)
CIE-LCHlch(23.90, 67.21, 313.29°)
OKLaboklab(36.5% 0.0889 -0.1397)
OKLCHoklch(36.5% 0.166 302.5)
XYZxyz(7.8838, 4.0685, 22.1953)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511884 #4B8418
analogous
#1B1884 #511884 #841881
triadic
#511884 #845118 #188451
tetradic
#511884 #841B18 #4B8418 #188184
square
#511884 #841B18 #4B8418 #188184
split-complementary
#511884 #818418 #18841B
monochromatic
#11051C #310F50 #511884 #7121B8 #903BDB

Accessibility & contrast

On white

11.58
#511884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#511884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511884
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511884#FFFFFF#000000##FFFFFF
##5118841.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003887
Deuteranopia (green-blind)
#003882
Tritanopia (blue-blind)
#46354E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #511884;
/* rgb */ color: rgb(81, 24, 132);
/* oklch */ color: oklch(36.5% 0.166 302.5);
Tailwind
colors: {
  custom: {
    50: '#875da9',
    500: '#511884',
    950: '#000000',
  },
}
SCSS
$custom: #511884;
$custom-light: #875da9;
$custom-dark: #000000;
JSON
{
  "hex": "#511884",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 132
  },
  "hsl": {
    "h": 271.667,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36498,
    "c": 0.16556,
    "h": 302.5
  },
  "luminance": 0.04069
}

Semantic roles & 50–950 ramp

primary
#511884
secondary
#79B840
accent
#EC3C8F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #511884

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

Preview Lab → · Contrast checker → · Palette generator →

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