#6A31BB#6A31BB

#6A31BB is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 47.0% C 0.202 H 296.6°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#6A31BB
RGBrgb(106, 49, 187)
HSLhsl(265, 58%, 46%)
HSVhsv(265, 74%, 73%)
CMYKcmyk(43.3%, 73.8%, 0%, 26.7%)
CIE-LABlab(35.69, 53.33, -62.95)
CIE-LCHlch(35.69, 82.50, 310.27°)
OKLaboklab(46.95% 0.0902 -0.1802)
OKLCHoklch(46.95% 0.202 296.6)
XYZxyz(16.0094, 8.8483, 47.8685)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A31BB #82BB31
analogous
#313DBB #6A31BB #AF31BB
triadic
#6A31BB #BB6A31 #31BB6A
tetradic
#6A31BB #BB313D #82BB31 #31BBAF
square
#6A31BB #BB313D #82BB31 #31BBAF
split-complementary
#6A31BB #BBAF31 #3DBB31
monochromatic
#33185A #4F248B #6A31BB #8A56D3 #AB87E0

Accessibility & contrast

On white

7.58
#6A31BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#6A31BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A31BB
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A31BB#FFFFFF#000000##FFFFFF
##6A31BB1.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BF
Deuteranopia (green-blind)
#0052B8
Tritanopia (blue-blind)
#555573
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6a31bb;
/* rgb */ color: rgb(106, 49, 187);
/* oklch */ color: oklch(47.0% 0.202 296.6);
Tailwind
colors: {
  custom: {
    50: '#9c6fd0',
    500: '#6a31bb',
    950: '#000000',
  },
}
SCSS
$custom: #6a31bb;
$custom-light: #9c6fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#6a31bb",
  "rgb": {
    "r": 106,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 264.783,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.46951,
    "c": 0.2015,
    "h": 296.6
  },
  "luminance": 0.08849
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6A31BB

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

Preview Lab → · Contrast checker → · Palette generator →

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