#511EA6#511EA6

#511EA6 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.3% C 0.196 H 292.0°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#511EA6
RGBrgb(81, 30, 166)
HSLhsl(263, 69%, 38%)
HSVhsv(263, 82%, 65%)
CMYKcmyk(51.2%, 81.9%, 0%, 34.9%)
CIE-LABlab(27.93, 52.37, -63.26)
CIE-LCHlch(27.93, 82.13, 309.62°)
OKLaboklab(40.27% 0.0733 -0.1818)
OKLCHoklch(40.27% 0.196 292)
XYZxyz(10.7386, 5.4306, 36.5514)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511EA6 #73A61E
analogous
#1E2FA6 #511EA6 #951EA6
triadic
#511EA6 #A6511E #1EA651
tetradic
#511EA6 #A61E2F #73A61E #1EA695
square
#511EA6 #A61E2F #73A61E #1EA695
split-complementary
#511EA6 #A6951E #2FA61E
monochromatic
#1E0B3E #381572 #511EA6 #6B29D8 #8F5DE2

Accessibility & contrast

On white

10.07
#511EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#511EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511EA6
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511EA6#FFFFFF#000000##FFFFFF
##511EA61.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AA
Deuteranopia (green-blind)
#003FA4
Tritanopia (blue-blind)
#344663
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #511ea6;
/* rgb */ color: rgb(81, 30, 166);
/* oklch */ color: oklch(40.3% 0.196 292.0);
Tailwind
colors: {
  custom: {
    50: '#8b61c2',
    500: '#511ea6',
    950: '#000000',
  },
}
SCSS
$custom: #511ea6;
$custom-light: #8b61c2;
$custom-dark: #000000;
JSON
{
  "hex": "#511ea6",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 166
  },
  "hsl": {
    "h": 262.5,
    "s": 69.388,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40274,
    "c": 0.19598,
    "h": 292
  },
  "luminance": 0.05431
}

Semantic roles & 50–950 ramp

primary
#511EA6
secondary
#9DC65A
accent
#EC3CAA
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #511EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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