#6A31BA#6A31BA

#6A31BA is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.9% C 0.200 H 296.8°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#6A31BA
RGBrgb(106, 49, 186)
HSLhsl(265, 58%, 46%)
HSVhsv(265, 74%, 73%)
CMYKcmyk(43%, 73.7%, 0%, 27.1%)
CIE-LABlab(35.61, 53.07, -62.50)
CIE-LCHlch(35.61, 81.99, 310.34°)
OKLaboklab(46.87% 0.0905 -0.1788)
OKLCHoklch(46.87% 0.2 296.8)
XYZxyz(15.9028, 8.8056, 47.3066)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A31BA #81BA31
analogous
#313CBA #6A31BA #AE31BA
triadic
#6A31BA #BA6A31 #31BA6A
tetradic
#6A31BA #BA313C #81BA31 #31BAAE
square
#6A31BA #BA313C #81BA31 #31BAAE
split-complementary
#6A31BA #BAAE31 #3CBA31
monochromatic
#331759 #4E248A #6A31BA #8A56D2 #AB86DF

Accessibility & contrast

On white

7.61
#6A31BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#6A31BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A31BA
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A31BA#FFFFFF#000000##FFFFFF
##6A31BA1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BE
Deuteranopia (green-blind)
#0052B7
Tritanopia (blue-blind)
#555573
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6a31ba;
/* rgb */ color: rgb(106, 49, 186);
/* oklch */ color: oklch(46.9% 0.200 296.8);
Tailwind
colors: {
  custom: {
    50: '#9c6fd0',
    500: '#6a31ba',
    950: '#000000',
  },
}
SCSS
$custom: #6a31ba;
$custom-light: #9c6fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#6a31ba",
  "rgb": {
    "r": 106,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 264.964,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.46867,
    "c": 0.20041,
    "h": 296.8
  },
  "luminance": 0.08806
}

Semantic roles & 50–950 ramp

primary
#6A31BA
secondary
#AAC97E
accent
#E246A1
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6A31BA

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

Preview Lab → · Contrast checker → · Palette generator →

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