#511E90#511E90

#511E90 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.172 H 297.8°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#511E90
RGBrgb(81, 30, 144)
HSLhsl(267, 66%, 34%)
HSVhsv(267, 79%, 56%)
CMYKcmyk(43.8%, 79.2%, 0%, 43.5%)
CIE-LABlab(25.84, 46.64, -53.23)
CIE-LCHlch(25.84, 70.77, 311.22°)
OKLaboklab(38.19% 0.0804 -0.1524)
OKLCHoklch(38.19% 0.172 297.8)
XYZxyz(8.8903, 4.6913, 26.8173)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E90 #5D901E
analogous
#1E2490 #511E90 #8A1E90
triadic
#511E90 #90511E #1E9051
tetradic
#511E90 #901E24 #5D901E #1E908A
square
#511E90 #901E24 #5D901E #1E908A
split-complementary
#511E90 #908A1E #24901E
monochromatic
#18092B #35135D #511E90 #6D29C3 #8D4EDA

Accessibility & contrast

On white

10.83
#511E90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#511E90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511E90
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E90#FFFFFF#000000##FFFFFF
##511E901.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D93
Deuteranopia (green-blind)
#003C8E
Tritanopia (blue-blind)
#413D56
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #511e90;
/* rgb */ color: rgb(81, 30, 144);
/* oklch */ color: oklch(38.2% 0.172 297.8);
Tailwind
colors: {
  custom: {
    50: '#8860b1',
    500: '#511e90',
    950: '#000000',
  },
}
SCSS
$custom: #511e90;
$custom-light: #8860b1;
$custom-dark: #000000;
JSON
{
  "hex": "#511e90",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 144
  },
  "hsl": {
    "h": 266.842,
    "s": 65.517,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38185,
    "c": 0.17228,
    "h": 297.8
  },
  "luminance": 0.04691
}

Semantic roles & 50–950 ramp

primary
#511E90
secondary
#8BBD4D
accent
#E83F9D
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #511E90

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

Preview Lab → · Contrast checker → · Palette generator →

#511E90 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva