#511BBB#511BBB

#511BBB is a dark, highly saturated violet. Relative luminance 0.061; OKLCH L 42.1% C 0.220 H 287.8°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#511BBB
RGBrgb(81, 27, 187)
HSLhsl(260, 75%, 42%)
HSVhsv(260, 86%, 73%)
CMYKcmyk(56.7%, 85.6%, 0%, 26.7%)
CIE-LABlab(29.71, 58.92, -72.88)
CIE-LCHlch(29.71, 93.72, 308.96°)
OKLaboklab(42.15% 0.0672 -0.2098)
OKLCHoklch(42.15% 0.22 287.8)
XYZxyz(12.7522, 6.1204, 47.5135)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511BBB #85BB1B
analogous
#1B35BB #511BBB #A11BBB
triadic
#511BBB #BB511B #1BBB51
tetradic
#511BBB #BB1B35 #85BB1B #1BBBA1
square
#511BBB #BB1B35 #85BB1B #1BBBA1
split-complementary
#511BBB #BBA11B #35BB1B
monochromatic
#230C50 #3A1386 #511BBB #6D32E1 #9367E9

Accessibility & contrast

On white

9.44
#511BBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#511BBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511BBB
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511BBB#FFFFFF#000000##FFFFFF
##511BBB1.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049BF
Deuteranopia (green-blind)
#0042B8
Tritanopia (blue-blind)
#1F4E6F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #511bbb;
/* rgb */ color: rgb(81, 27, 187);
/* oklch */ color: oklch(42.1% 0.220 287.8);
Tailwind
colors: {
  custom: {
    50: '#8f62d1',
    500: '#511bbb',
    950: '#000000',
  },
}
SCSS
$custom: #511bbb;
$custom-light: #8f62d1;
$custom-dark: #000000;
JSON
{
  "hex": "#511bbb",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 187
  },
  "hsl": {
    "h": 260.25,
    "s": 74.766,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42145,
    "c": 0.22033,
    "h": 287.8
  },
  "luminance": 0.06121
}

Semantic roles & 50–950 ramp

primary
#511BBB
secondary
#AACE63
accent
#F136B2
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #511BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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