#6B31BB#6B31BB

#6B31BB is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.1% C 0.202 H 297.1°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#6B31BB
RGBrgb(107, 49, 187)
HSLhsl(265, 58%, 46%)
HSVhsv(265, 74%, 73%)
CMYKcmyk(42.8%, 73.8%, 0%, 26.7%)
CIE-LABlab(35.81, 53.50, -62.75)
CIE-LCHlch(35.81, 82.46, 310.45°)
OKLaboklab(47.06% 0.0917 -0.1795)
OKLCHoklch(47.06% 0.202 297.1)
XYZxyz(16.1290, 8.9100, 47.8741)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B31BB #81BB31
analogous
#313CBB #6B31BB #B031BB
triadic
#6B31BB #BB6B31 #31BB6B
tetradic
#6B31BB #BB313C #81BB31 #31BBB0
square
#6B31BB #BB313C #81BB31 #31BBB0
split-complementary
#6B31BB #BBB031 #3CBB31
monochromatic
#34185A #4F248B #6B31BB #8B56D3 #AC87E0

Accessibility & contrast

On white

7.55
#6B31BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#6B31BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B31BB
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B31BB#FFFFFF#000000##FFFFFF
##6B31BB1.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b31bb;
/* rgb */ color: rgb(107, 49, 187);
/* oklch */ color: oklch(47.1% 0.202 297.1);
Tailwind
colors: {
  custom: {
    50: '#9c6fd0',
    500: '#6b31bb',
    950: '#000000',
  },
}
SCSS
$custom: #6b31bb;
$custom-light: #9c6fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#6b31bb",
  "rgb": {
    "r": 107,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 265.217,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.47063,
    "c": 0.20159,
    "h": 297.1
  },
  "luminance": 0.0891
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6B31BB

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

Preview Lab → · Contrast checker → · Palette generator →

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