#511F8F#511F8F

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

Color values

HEX#511F8F
RGBrgb(81, 31, 143)
HSLhsl(267, 64%, 34%)
HSVhsv(267, 78%, 56%)
CMYKcmyk(43.4%, 78.3%, 0%, 43.9%)
CIE-LABlab(25.90, 45.94, -52.51)
CIE-LCHlch(25.90, 69.77, 311.18°)
OKLaboklab(38.2% 0.0798 -0.1503)
OKLCHoklch(38.2% 0.17 298)
XYZxyz(8.8400, 4.7123, 26.4251)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F8F #5D8F1F
analogous
#1F258F #511F8F #891F8F
triadic
#511F8F #8F511F #1F8F51
tetradic
#511F8F #8F1F25 #5D8F1F #1F8F89
square
#511F8F #8F1F25 #5D8F1F #1F8F89
split-complementary
#511F8F #8F891F #258F1F
monochromatic
#18092A #35145D #511F8F #6D2AC1 #8D4FD9

Accessibility & contrast

On white

10.81
#511F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511F8F
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F8F#FFFFFF#000000##FFFFFF
##511F8F1.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511f8f;
/* rgb */ color: rgb(81, 31, 143);
/* oklch */ color: oklch(38.2% 0.170 298.0);
Tailwind
colors: {
  custom: {
    50: '#8861b1',
    500: '#511f8f',
    950: '#000000',
  },
}
SCSS
$custom: #511f8f;
$custom-light: #8861b1;
$custom-dark: #000000;
JSON
{
  "hex": "#511f8f",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 266.786,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38201,
    "c": 0.17014,
    "h": 298
  },
  "luminance": 0.04712
}

Semantic roles & 50–950 ramp

primary
#511F8F
secondary
#8BBC4E
accent
#E7409D
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #511F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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