#511CBB#511CBB

#511CBB is a dark, highly saturated violet. Relative luminance 0.062; OKLCH L 42.2% C 0.220 H 287.7°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#511CBB
RGBrgb(81, 28, 187)
HSLhsl(260, 74%, 42%)
HSVhsv(260, 85%, 73%)
CMYKcmyk(56.7%, 85%, 0%, 26.7%)
CIE-LABlab(29.83, 58.58, -72.69)
CIE-LCHlch(29.83, 93.36, 308.87°)
OKLaboklab(42.22% 0.0668 -0.2093)
OKLCHoklch(42.22% 0.22 287.7)
XYZxyz(12.7756, 6.1670, 47.5212)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511CBB #86BB1C
analogous
#1C37BB #511CBB #A11CBB
triadic
#511CBB #BB511C #1CBB51
tetradic
#511CBB #BB1C37 #86BB1C #1CBBA1
square
#511CBB #BB1C37 #86BB1C #1CBBA1
split-complementary
#511CBB #BBA11C #37BB1C
monochromatic
#230C51 #3A1486 #511CBB #6D34E1 #9369E9

Accessibility & contrast

On white

9.40
#511CBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#511CBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511CBB
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511CBB#FFFFFF#000000##FFFFFF
##511CBB1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004ABF
Deuteranopia (green-blind)
#0042B8
Tritanopia (blue-blind)
#1F4F6F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #511cbb;
/* rgb */ color: rgb(81, 28, 187);
/* oklch */ color: oklch(42.2% 0.220 287.7);
Tailwind
colors: {
  custom: {
    50: '#8f62d1',
    500: '#511cbb',
    950: '#000000',
  },
}
SCSS
$custom: #511cbb;
$custom-light: #8f62d1;
$custom-dark: #000000;
JSON
{
  "hex": "#511cbb",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 187
  },
  "hsl": {
    "h": 260,
    "s": 73.953,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42224,
    "c": 0.21966,
    "h": 287.7
  },
  "luminance": 0.06168
}

Semantic roles & 50–950 ramp

primary
#511CBB
secondary
#ABCE65
accent
#F137B3
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #511CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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