#6C31AE#6C31AE

#6C31AE is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.1% C 0.188 H 300.7°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#6C31AE
RGBrgb(108, 49, 174)
HSLhsl(268, 56%, 44%)
HSVhsv(268, 72%, 68%)
CMYKcmyk(37.9%, 71.8%, 0%, 31.8%)
CIE-LABlab(34.88, 50.40, -56.55)
CIE-LCHlch(34.88, 75.75, 311.71°)
OKLaboklab(46.11% 0.0958 -0.1613)
OKLCHoklch(46.11% 0.188 300.7)
XYZxyz(14.9208, 8.4407, 40.8793)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C31AE #73AE31
analogous
#3134AE #6C31AE #AA31AE
triadic
#6C31AE #AE6C31 #31AE6C
tetradic
#6C31AE #AE3134 #73AE31 #31AEAA
square
#6C31AE #AE3134 #73AE31 #31AEAA
split-complementary
#6C31AE #AEAA31 #34AE31
monochromatic
#31164E #4E247E #6C31AE #8B4FCD #AA7FDB

Accessibility & contrast

On white

7.81
#6C31AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#6C31AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C31AE
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C31AE#FFFFFF#000000##FFFFFF
##6C31AE1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B2
Deuteranopia (green-blind)
#0051AB
Tritanopia (blue-blind)
#5D506C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6c31ae;
/* rgb */ color: rgb(108, 49, 174);
/* oklch */ color: oklch(46.1% 0.188 300.7);
Tailwind
colors: {
  custom: {
    50: '#9c6ec7',
    500: '#6c31ae',
    950: '#000000',
  },
}
SCSS
$custom: #6c31ae;
$custom-light: #9c6ec7;
$custom-dark: #000000;
JSON
{
  "hex": "#6c31ae",
  "rgb": {
    "r": 108,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 268.32,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.46108,
    "c": 0.1876,
    "h": 300.7
  },
  "luminance": 0.08441
}

Semantic roles & 50–950 ramp

primary
#6C31AE
secondary
#A0C477
accent
#DF4898
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6C31AE

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

Preview Lab → · Contrast checker → · Palette generator →

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