#511F83#511F83

#511F83 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.1% C 0.157 H 301.9°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#511F83
RGBrgb(81, 31, 131)
HSLhsl(270, 62%, 32%)
HSVhsv(270, 76%, 51%)
CMYKcmyk(38.2%, 76.3%, 0%, 48.6%)
CIE-LABlab(24.85, 42.84, -46.73)
CIE-LCHlch(24.85, 63.40, 312.52°)
OKLaboklab(37.14% 0.0829 -0.1333)
OKLCHoklch(37.14% 0.157 301.9)
XYZxyz(7.9791, 4.3680, 21.8911)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F83 #51831F
analogous
#1F1F83 #511F83 #831F83
triadic
#511F83 #83511F #1F8351
tetradic
#511F83 #831F1F #51831F #1F8383
square
#511F83 #831F1F #51831F #1F8383
split-complementary
#511F83 #83831F #1F831F
monochromatic
#140820 #321352 #511F83 #702BB4 #8E49D4

Accessibility & contrast

On white

11.21
#511F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#511F83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F83
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F83#FFFFFF#000000##FFFFFF
##511F831.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A86
Deuteranopia (green-blind)
#003B81
Tritanopia (blue-blind)
#46384F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #511f83;
/* rgb */ color: rgb(81, 31, 131);
/* oklch */ color: oklch(37.1% 0.157 301.9);
Tailwind
colors: {
  custom: {
    50: '#8760a8',
    500: '#511f83',
    950: '#000000',
  },
}
SCSS
$custom: #511f83;
$custom-light: #8760a8;
$custom-dark: #000000;
JSON
{
  "hex": "#511f83",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 131
  },
  "hsl": {
    "h": 270,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37142,
    "c": 0.15695,
    "h": 301.9
  },
  "luminance": 0.04368
}

Semantic roles & 50–950 ramp

primary
#511F83
secondary
#7FB648
accent
#E54394
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511F83

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

Preview Lab → · Contrast checker → · Palette generator →

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