#6B31AC#6B31AC

#6B31AC is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.8% C 0.185 H 300.8°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#6B31AC
RGBrgb(107, 49, 172)
HSLhsl(268, 56%, 43%)
HSVhsv(268, 72%, 67%)
CMYKcmyk(37.8%, 71.5%, 0%, 32.5%)
CIE-LABlab(34.60, 49.70, -55.82)
CIE-LCHlch(34.60, 74.74, 311.68°)
OKLaboklab(45.83% 0.0948 -0.1592)
OKLCHoklch(45.83% 0.185 300.8)
XYZxyz(14.6063, 8.3009, 39.8544)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B31AC #72AC31
analogous
#3134AC #6B31AC #A831AC
triadic
#6B31AC #AC6B31 #31AC6B
tetradic
#6B31AC #AC3134 #72AC31 #31ACA8
square
#6B31AC #AC3134 #72AC31 #31ACA8
split-complementary
#6B31AC #ACA831 #34AC31
monochromatic
#30164D #4D237C #6B31AC #894ECC #A97DDA

Accessibility & contrast

On white

7.89
#6B31AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#6B31AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B31AC
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B31AC#FFFFFF#000000##FFFFFF
##6B31AC1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B0
Deuteranopia (green-blind)
#0051A9
Tritanopia (blue-blind)
#5D4F6B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6b31ac;
/* rgb */ color: rgb(107, 49, 172);
/* oklch */ color: oklch(45.8% 0.185 300.8);
Tailwind
colors: {
  custom: {
    50: '#9b6ec6',
    500: '#6b31ac',
    950: '#000000',
  },
}
SCSS
$custom: #6b31ac;
$custom-light: #9b6ec6;
$custom-dark: #000000;
JSON
{
  "hex": "#6b31ac",
  "rgb": {
    "r": 107,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 268.293,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.45831,
    "c": 0.18525,
    "h": 300.8
  },
  "luminance": 0.08301
}

Semantic roles & 50–950 ramp

primary
#6B31AC
secondary
#9FC376
accent
#DF4998
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #6B31AC

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

Preview Lab → · Contrast checker → · Palette generator →

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