#511F93#511F93

#511F93 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.175 H 296.8°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#511F93
RGBrgb(81, 31, 147)
HSLhsl(266, 65%, 35%)
HSVhsv(266, 79%, 58%)
CMYKcmyk(44.9%, 78.9%, 0%, 42.4%)
CIE-LABlab(26.26, 46.98, -54.39)
CIE-LCHlch(26.26, 71.87, 310.82°)
OKLaboklab(38.57% 0.0787 -0.1558)
OKLCHoklch(38.57% 0.175 296.8)
XYZxyz(9.1484, 4.8357, 28.0495)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F93 #61931F
analogous
#1F2793 #511F93 #8B1F93
triadic
#511F93 #93511F #1F9351
tetradic
#511F93 #931F27 #61931F #1F938B
square
#511F93 #931F27 #61931F #1F938B
split-complementary
#511F93 #938B1F #27931F
monochromatic
#190A2E #351460 #511F93 #6D2AC6 #8D52DA

Accessibility & contrast

On white

10.68
#511F93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#511F93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F93
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F93#FFFFFF#000000##FFFFFF
##511F931.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F96
Deuteranopia (green-blind)
#003D91
Tritanopia (blue-blind)
#3F3F58
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #511f93;
/* rgb */ color: rgb(81, 31, 147);
/* oklch */ color: oklch(38.6% 0.175 296.8);
Tailwind
colors: {
  custom: {
    50: '#8961b4',
    500: '#511f93',
    950: '#000000',
  },
}
SCSS
$custom: #511f93;
$custom-light: #8961b4;
$custom-dark: #000000;
JSON
{
  "hex": "#511f93",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 147
  },
  "hsl": {
    "h": 265.862,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38566,
    "c": 0.17452,
    "h": 296.8
  },
  "luminance": 0.04836
}

Semantic roles & 50–950 ramp

primary
#511F93
secondary
#8EBE50
accent
#E840A0
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #511F93

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

Preview Lab → · Contrast checker → · Palette generator →

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