#6B31B6#6B31B6

#6B31B6 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.6% C 0.196 H 298.2°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#6B31B6
RGBrgb(107, 49, 182)
HSLhsl(266, 58%, 45%)
HSVhsv(266, 73%, 71%)
CMYKcmyk(41.2%, 73.1%, 0%, 28.6%)
CIE-LABlab(35.40, 52.23, -60.47)
CIE-LCHlch(35.40, 79.90, 310.82°)
OKLaboklab(46.65% 0.0928 -0.1728)
OKLCHoklch(46.65% 0.196 298.2)
XYZxyz(15.6030, 8.6996, 45.1040)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B31B6 #7CB631
analogous
#313AB6 #6B31B6 #AD31B6
triadic
#6B31B6 #B66B31 #31B66B
tetradic
#6B31B6 #B6313A #7CB631 #31B6AD
square
#6B31B6 #B6313A #7CB631 #31B6AD
split-complementary
#6B31B6 #B6AD31 #3AB631
monochromatic
#321756 #4F2486 #6B31B6 #8A53D1 #AB84DE

Accessibility & contrast

On white

7.66
#6B31B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#6B31B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B31B6
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B31B6#FFFFFF#000000##FFFFFF
##6B31B61.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BA
Deuteranopia (green-blind)
#0052B3
Tritanopia (blue-blind)
#585371
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6b31b6;
/* rgb */ color: rgb(107, 49, 182);
/* oklch */ color: oklch(46.6% 0.196 298.2);
Tailwind
colors: {
  custom: {
    50: '#9c6ecd',
    500: '#6b31b6',
    950: '#000000',
  },
}
SCSS
$custom: #6b31b6;
$custom-light: #9c6ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#6b31b6",
  "rgb": {
    "r": 107,
    "g": 49,
    "b": 182
  },
  "hsl": {
    "h": 266.165,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.46645,
    "c": 0.19617,
    "h": 298.2
  },
  "luminance": 0.087
}

Semantic roles & 50–950 ramp

primary
#6B31B6
secondary
#A6C77C
accent
#E1479E
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6B31B6

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

Preview Lab → · Contrast checker → · Palette generator →

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