#6B31B8#6B31B8

#6B31B8 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.8% C 0.198 H 297.7°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#6B31B8
RGBrgb(107, 49, 184)
HSLhsl(266, 58%, 46%)
HSVhsv(266, 73%, 72%)
CMYKcmyk(41.8%, 73.4%, 0%, 27.8%)
CIE-LABlab(35.56, 52.73, -61.39)
CIE-LCHlch(35.56, 80.93, 310.66°)
OKLaboklab(46.81% 0.0924 -0.1755)
OKLCHoklch(46.81% 0.198 297.7)
XYZxyz(15.8112, 8.7828, 46.2003)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B31B8 #7EB831
analogous
#313AB8 #6B31B8 #AE31B8
triadic
#6B31B8 #B86B31 #31B86B
tetradic
#6B31B8 #B8313A #7EB831 #31B8AE
square
#6B31B8 #B8313A #7EB831 #31B8AE
split-complementary
#6B31B8 #B8AE31 #3AB831
monochromatic
#331757 #4F2488 #6B31B8 #8A55D2 #AB85DE

Accessibility & contrast

On white

7.62
#6B31B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B31B8
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B31B8#FFFFFF#000000##FFFFFF
##6B31B81.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BC
Deuteranopia (green-blind)
#0052B5
Tritanopia (blue-blind)
#585472
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6b31b8;
/* rgb */ color: rgb(107, 49, 184);
/* oklch */ color: oklch(46.8% 0.198 297.7);
Tailwind
colors: {
  custom: {
    50: '#9c6fce',
    500: '#6b31b8',
    950: '#000000',
  },
}
SCSS
$custom: #6b31b8;
$custom-light: #9c6fce;
$custom-dark: #000000;
JSON
{
  "hex": "#6b31b8",
  "rgb": {
    "r": 107,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 265.778,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.46811,
    "c": 0.19834,
    "h": 297.7
  },
  "luminance": 0.08783
}

Semantic roles & 50–950 ramp

primary
#6B31B8
secondary
#A8C87D
accent
#E1479F
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6B31B8

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

Preview Lab → · Contrast checker → · Palette generator →

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