#511881#511881

#511881 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.162 H 303.6°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#511881
RGBrgb(81, 24, 129)
HSLhsl(273, 69%, 30%)
HSVhsv(273, 81%, 51%)
CMYKcmyk(37.2%, 81.4%, 0%, 49.4%)
CIE-LABlab(23.63, 45.35, -47.46)
CIE-LCHlch(23.63, 65.65, 313.70°)
OKLaboklab(36.23% 0.0898 -0.1354)
OKLCHoklch(36.23% 0.162 303.6)
XYZxyz(7.6815, 3.9876, 21.1296)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511881 #488118
analogous
#1C1881 #511881 #81187D
triadic
#511881 #815118 #188151
tetradic
#511881 #811C18 #488118 #187D81
square
#511881 #811C18 #488118 #187D81
split-complementary
#511881 #7D8118 #18811C
monochromatic
#10051A #310E4D #511881 #7122B5 #9139DA

Accessibility & contrast

On white

11.68
#511881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#511881 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511881
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511881#FFFFFF#000000##FFFFFF
##5118811.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003784
Deuteranopia (green-blind)
#00387F
Tritanopia (blue-blind)
#47344D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #511881;
/* rgb */ color: rgb(81, 24, 129);
/* oklch */ color: oklch(36.2% 0.162 303.6);
Tailwind
colors: {
  custom: {
    50: '#875da6',
    500: '#511881',
    950: '#000000',
  },
}
SCSS
$custom: #511881;
$custom-light: #875da6;
$custom-dark: #000000;
JSON
{
  "hex": "#511881",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 129
  },
  "hsl": {
    "h": 272.571,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.3623,
    "c": 0.16246,
    "h": 303.6
  },
  "luminance": 0.03988
}

Semantic roles & 50–950 ramp

primary
#511881
secondary
#75B540
accent
#EB3C8C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #511881

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

Preview Lab → · Contrast checker → · Palette generator →

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