#6D31AE#6D31AE

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

Color values

HEX#6D31AE
RGBrgb(109, 49, 174)
HSLhsl(269, 56%, 44%)
HSVhsv(269, 72%, 68%)
CMYKcmyk(37.4%, 71.8%, 0%, 31.8%)
CIE-LABlab(35.01, 50.59, -56.34)
CIE-LCHlch(35.01, 75.72, 311.92°)
OKLaboklab(46.23% 0.0973 -0.1606)
OKLCHoklch(46.23% 0.188 301.2)
XYZxyz(15.0431, 8.5037, 40.8850)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D31AE #72AE31
analogous
#3133AE #6D31AE #AB31AE
triadic
#6D31AE #AE6D31 #31AE6D
tetradic
#6D31AE #AE3133 #72AE31 #31AEAB
square
#6D31AE #AE3133 #72AE31 #31AEAB
split-complementary
#6D31AE #AEAB31 #33AE31
monochromatic
#31164E #4F247E #6D31AE #8C4FCD #AB7FDB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##6D31AE#FFFFFF#000000##FFFFFF
##6D31AE1.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)
#0052B2
Deuteranopia (green-blind)
#0052AB
Tritanopia (blue-blind)
#5F4F6C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6d31ae;
/* rgb */ color: rgb(109, 49, 174);
/* oklch */ color: oklch(46.2% 0.188 301.2);
Tailwind
colors: {
  custom: {
    50: '#9c6ec7',
    500: '#6d31ae',
    950: '#000000',
  },
}
SCSS
$custom: #6d31ae;
$custom-light: #9c6ec7;
$custom-dark: #000000;
JSON
{
  "hex": "#6d31ae",
  "rgb": {
    "r": 109,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 268.8,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.46226,
    "c": 0.18778,
    "h": 301.2
  },
  "luminance": 0.08504
}

Semantic roles & 50–950 ramp

primary
#6D31AE
secondary
#9FC477
accent
#DF4897
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6D31AE

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

Preview Lab → · Contrast checker → · Palette generator →

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