#6C31B6#6C31B6

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

Color values

HEX#6C31B6
RGBrgb(108, 49, 182)
HSLhsl(267, 58%, 45%)
HSVhsv(267, 73%, 71%)
CMYKcmyk(40.7%, 73.1%, 0%, 28.6%)
CIE-LABlab(35.52, 52.40, -60.27)
CIE-LCHlch(35.52, 79.86, 311.01°)
OKLaboklab(46.76% 0.0942 -0.1722)
OKLCHoklch(46.76% 0.196 298.7)
XYZxyz(15.7240, 8.7619, 45.1097)
Luminance0.0876 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C31B6 #7BB631
analogous
#3138B6 #6C31B6 #AF31B6
triadic
#6C31B6 #B66C31 #31B66C
tetradic
#6C31B6 #B63138 #7BB631 #31B6AF
square
#6C31B6 #B63138 #7BB631 #31B6AF
split-complementary
#6C31B6 #B6AF31 #38B631
monochromatic
#331756 #4F2486 #6C31B6 #8B53D1 #AC84DE

Accessibility & contrast

On white

7.63
#6C31B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#6C31B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C31B6
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C31B6#FFFFFF#000000##FFFFFF
##6C31B61.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BA
Deuteranopia (green-blind)
#0052B3
Tritanopia (blue-blind)
#5A5371
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6c31b6;
/* rgb */ color: rgb(108, 49, 182);
/* oklch */ color: oklch(46.8% 0.196 298.7);
Tailwind
colors: {
  custom: {
    50: '#9d6fcd',
    500: '#6c31b6',
    950: '#000000',
  },
}
SCSS
$custom: #6c31b6;
$custom-light: #9d6fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#6c31b6",
  "rgb": {
    "r": 108,
    "g": 49,
    "b": 182
  },
  "hsl": {
    "h": 266.617,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.46759,
    "c": 0.1963,
    "h": 298.7
  },
  "luminance": 0.08762
}

Semantic roles & 50–950 ramp

primary
#6C31B6
secondary
#A6C77C
accent
#E1479D
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6C31B6

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

Preview Lab → · Contrast checker → · Palette generator →

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