#511CA9#511CA9

#511CA9 is a dark, highly saturated violet. Relative luminance 0.054; OKLCH L 40.4% C 0.201 H 291.5°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#511CA9
RGBrgb(81, 28, 169)
HSLhsl(263, 72%, 39%)
HSVhsv(263, 83%, 66%)
CMYKcmyk(52.1%, 83.4%, 0%, 33.7%)
CIE-LABlab(27.96, 53.93, -65.01)
CIE-LCHlch(27.96, 84.47, 309.67°)
OKLaboklab(40.39% 0.0735 -0.1869)
OKLCHoklch(40.39% 0.201 291.5)
XYZxyz(10.9680, 5.4440, 38.0013)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511CA9 #74A91C
analogous
#1C2DA9 #511CA9 #971CA9
triadic
#511CA9 #A9511C #1CA951
tetradic
#511CA9 #A91C2D #74A91C #1CA997
square
#511CA9 #A91C2D #74A91C #1CA997
split-complementary
#511CA9 #A9971C #2DA91C
monochromatic
#1F0B40 #381374 #511CA9 #6B27DB #8F5BE4

Accessibility & contrast

On white

10.05
#511CA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511CA9
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511CA9#FFFFFF#000000##FFFFFF
##511CA91.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AD
Deuteranopia (green-blind)
#003FA7
Tritanopia (blue-blind)
#324765
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #511ca9;
/* rgb */ color: rgb(81, 28, 169);
/* oklch */ color: oklch(40.4% 0.201 291.5);
Tailwind
colors: {
  custom: {
    50: '#8c61c4',
    500: '#511ca9',
    950: '#000000',
  },
}
SCSS
$custom: #511ca9;
$custom-light: #8c61c4;
$custom-dark: #000000;
JSON
{
  "hex": "#511ca9",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 169
  },
  "hsl": {
    "h": 262.553,
    "s": 71.574,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40389,
    "c": 0.2008,
    "h": 291.5
  },
  "luminance": 0.05444
}

Semantic roles & 50–950 ramp

primary
#511CA9
secondary
#9EC859
accent
#EE39AA
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0513
muted
#7E7A82

Preview Lab

Preview with #511CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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