#6E31AC#6E31AC

#6E31AC is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.2% C 0.186 H 302.2°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#6E31AC
RGBrgb(110, 49, 172)
HSLhsl(270, 56%, 43%)
HSVhsv(270, 72%, 67%)
CMYKcmyk(36%, 71.5%, 0%, 32.5%)
CIE-LABlab(34.98, 50.28, -55.18)
CIE-LCHlch(34.98, 74.66, 312.34°)
OKLaboklab(46.19% 0.099 -0.1572)
OKLCHoklch(46.19% 0.186 302.2)
XYZxyz(14.9733, 8.4901, 39.8716)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E31AC #6FAC31
analogous
#3131AC #6E31AC #AB31AC
triadic
#6E31AC #AC6E31 #31AC6E
tetradic
#6E31AC #AC3131 #6FAC31 #31ACAB
square
#6E31AC #AC3131 #6FAC31 #31ACAB
split-complementary
#6E31AC #ACAB31 #31AC31
monochromatic
#31164D #50237C #6E31AC #8D4ECC #AB7DDA

Accessibility & contrast

On white

7.78
#6E31AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#6E31AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E31AC
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E31AC#FFFFFF#000000##FFFFFF
##6E31AC1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B0
Deuteranopia (green-blind)
#0052A9
Tritanopia (blue-blind)
#614F6B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6e31ac;
/* rgb */ color: rgb(110, 49, 172);
/* oklch */ color: oklch(46.2% 0.186 302.2);
Tailwind
colors: {
  custom: {
    50: '#9d6ec6',
    500: '#6e31ac',
    950: '#000000',
  },
}
SCSS
$custom: #6e31ac;
$custom-light: #9d6ec6;
$custom-dark: #000000;
JSON
{
  "hex": "#6e31ac",
  "rgb": {
    "r": 110,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 269.756,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.46186,
    "c": 0.18579,
    "h": 302.2
  },
  "luminance": 0.0849
}

Semantic roles & 50–950 ramp

primary
#6E31AC
secondary
#9DC376
accent
#DF4995
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6E31AC

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

Preview Lab → · Contrast checker → · Palette generator →

#6E31AC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva