#6C31C2#6C31C2

#6C31C2 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.8% C 0.209 H 295.9°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#6C31C2
RGBrgb(108, 49, 194)
HSLhsl(264, 60%, 48%)
HSVhsv(264, 75%, 76%)
CMYKcmyk(44.3%, 74.7%, 0%, 23.9%)
CIE-LABlab(36.52, 55.45, -65.71)
CIE-LCHlch(36.52, 85.97, 310.16°)
OKLaboklab(47.77% 0.0915 -0.1882)
OKLCHoklch(47.77% 0.209 295.9)
XYZxyz(17.0177, 9.2794, 51.9230)
Luminance0.0928 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C31C2 #87C231
analogous
#313EC2 #6C31C2 #B531C2
triadic
#6C31C2 #C26C31 #31C26C
tetradic
#6C31C2 #C2313E #87C231 #31C2B5
square
#6C31C2 #C2313E #87C231 #31C2B5
split-complementary
#6C31C2 #C2B531 #3EC231
monochromatic
#361860 #512591 #6C31C2 #8D5BD6 #AF8CE2

Accessibility & contrast

On white

7.35
#6C31C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#6C31C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C31C2
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C31C2#FFFFFF#000000##FFFFFF
##6C31C21.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C6
Deuteranopia (green-blind)
#0054BF
Tritanopia (blue-blind)
#545877
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6c31c2;
/* rgb */ color: rgb(108, 49, 194);
/* oklch */ color: oklch(47.8% 0.209 295.9);
Tailwind
colors: {
  custom: {
    50: '#9e6fd6',
    500: '#6c31c2',
    950: '#000000',
  },
}
SCSS
$custom: #6c31c2;
$custom-light: #9e6fd6;
$custom-dark: #000000;
JSON
{
  "hex": "#6c31c2",
  "rgb": {
    "r": 108,
    "g": 49,
    "b": 194
  },
  "hsl": {
    "h": 264.414,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.47768,
    "c": 0.20923,
    "h": 295.9
  },
  "luminance": 0.0928
}

Semantic roles & 50–950 ramp

primary
#6C31C2
secondary
#AECC83
accent
#E345A3
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#0F0814
muted
#7F7B83

Preview Lab

Preview with #6C31C2

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

Preview Lab → · Contrast checker → · Palette generator →

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