#511FA6#511FA6

#511FA6 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.4% C 0.195 H 291.9°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#511FA6
RGBrgb(81, 31, 166)
HSLhsl(262, 69%, 39%)
HSVhsv(262, 81%, 65%)
CMYKcmyk(51.2%, 81.3%, 0%, 34.9%)
CIE-LABlab(28.07, 51.97, -63.03)
CIE-LCHlch(28.07, 81.69, 309.50°)
OKLaboklab(40.37% 0.0726 -0.1811)
OKLCHoklch(40.37% 0.195 291.9)
XYZxyz(10.7643, 5.4821, 36.5600)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511FA6 #74A61F
analogous
#1F30A6 #511FA6 #941FA6
triadic
#511FA6 #A6511F #1FA651
tetradic
#511FA6 #A61F30 #74A61F #1FA694
square
#511FA6 #A61F30 #74A61F #1FA694
split-complementary
#511FA6 #A6941F #30A61F
monochromatic
#1F0C3F #381572 #511FA6 #6B2BD7 #8F5EE1

Accessibility & contrast

On white

10.02
#511FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#511FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511FA6
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511FA6#FFFFFF#000000##FFFFFF
##511FA61.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511fa6;
/* rgb */ color: rgb(81, 31, 166);
/* oklch */ color: oklch(40.4% 0.195 291.9);
Tailwind
colors: {
  custom: {
    50: '#8b62c2',
    500: '#511fa6',
    950: '#000000',
  },
}
SCSS
$custom: #511fa6;
$custom-light: #8b62c2;
$custom-dark: #000000;
JSON
{
  "hex": "#511fa6",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 262.222,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4037,
    "c": 0.19513,
    "h": 291.9
  },
  "luminance": 0.05482
}

Semantic roles & 50–950 ramp

primary
#511FA6
secondary
#9EC55B
accent
#EB3CAB
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #511FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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