#6C31B8#6C31B8

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

Color values

HEX#6C31B8
RGBrgb(108, 49, 184)
HSLhsl(266, 58%, 46%)
HSVhsv(266, 73%, 72%)
CMYKcmyk(41.3%, 73.4%, 0%, 27.8%)
CIE-LABlab(35.68, 52.91, -61.18)
CIE-LCHlch(35.68, 80.89, 310.85°)
OKLaboklab(46.92% 0.0938 -0.1749)
OKLCHoklch(46.92% 0.198 298.2)
XYZxyz(15.9322, 8.8452, 46.2060)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C31B8 #7DB831
analogous
#313AB8 #6C31B8 #AF31B8
triadic
#6C31B8 #B86C31 #31B86C
tetradic
#6C31B8 #B8313A #7DB831 #31B8AF
square
#6C31B8 #B8313A #7DB831 #31B8AF
split-complementary
#6C31B8 #B8AF31 #3AB831
monochromatic
#331757 #502488 #6C31B8 #8B55D2 #AC85DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##6C31B8#FFFFFF#000000##FFFFFF
##6C31B81.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)
#0054BC
Deuteranopia (green-blind)
#0052B5
Tritanopia (blue-blind)
#595472
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6c31b8;
/* rgb */ color: rgb(108, 49, 184);
/* oklch */ color: oklch(46.9% 0.198 298.2);
Tailwind
colors: {
  custom: {
    50: '#9d6fce',
    500: '#6c31b8',
    950: '#000000',
  },
}
SCSS
$custom: #6c31b8;
$custom-light: #9d6fce;
$custom-dark: #000000;
JSON
{
  "hex": "#6c31b8",
  "rgb": {
    "r": 108,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 266.222,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.46924,
    "c": 0.19847,
    "h": 298.2
  },
  "luminance": 0.08845
}

Semantic roles & 50–950 ramp

primary
#6C31B8
secondary
#A7C87D
accent
#E1479E
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6C31B8

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

Preview Lab → · Contrast checker → · Palette generator →

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