#511F9F#511F9F

#511F9F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.7% C 0.188 H 293.6°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#511F9F
RGBrgb(81, 31, 159)
HSLhsl(263, 67%, 37%)
HSVhsv(263, 81%, 62%)
CMYKcmyk(49.1%, 80.5%, 0%, 37.6%)
CIE-LABlab(27.39, 50.13, -59.90)
CIE-LCHlch(27.39, 78.11, 309.92°)
OKLaboklab(39.69% 0.075 -0.1719)
OKLCHoklch(39.69% 0.188 293.6)
XYZxyz(10.1396, 5.2322, 33.2698)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F9F #6D9F1F
analogous
#1F2D9F #511F9F #911F9F
triadic
#511F9F #9F511F #1F9F51
tetradic
#511F9F #9F1F2D #6D9F1F #1F9F91
square
#511F9F #9F1F2D #6D9F1F #1F9F91
split-complementary
#511F9F #9F911F #2D9F1F
monochromatic
#1D0B39 #37156C #511F9F #6B29D2 #8E5ADF

Accessibility & contrast

On white

10.26
#511F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#511F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F9F
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F9F#FFFFFF#000000##FFFFFF
##511F9F1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A2
Deuteranopia (green-blind)
#003E9D
Tritanopia (blue-blind)
#39445F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #511f9f;
/* rgb */ color: rgb(81, 31, 159);
/* oklch */ color: oklch(39.7% 0.188 293.6);
Tailwind
colors: {
  custom: {
    50: '#8a62bc',
    500: '#511f9f',
    950: '#000000',
  },
}
SCSS
$custom: #511f9f;
$custom-light: #8a62bc;
$custom-dark: #000000;
JSON
{
  "hex": "#511f9f",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 263.438,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39693,
    "c": 0.18757,
    "h": 293.6
  },
  "luminance": 0.05233
}

Semantic roles & 50–950 ramp

primary
#511F9F
secondary
#99C357
accent
#EA3EA7
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #511F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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