#6C31E2#6C31E2

#6C31E2 is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.6% C 0.243 H 289.9°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#6C31E2
RGBrgb(108, 49, 226)
HSLhsl(260, 75%, 54%)
HSVhsv(260, 78%, 89%)
CMYKcmyk(52.2%, 78.3%, 0%, 11.4%)
CIE-LABlab(39.37, 63.64, -79.53)
CIE-LCHlch(39.37, 101.86, 308.67°)
OKLaboklab(50.63% 0.0826 -0.2287)
OKLCHoklch(50.63% 0.243 289.9)
XYZxyz(21.0061, 10.8748, 72.9290)
Luminance0.1088 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C31E2 #A7E231
analogous
#314FE2 #6C31E2 #C531E2
triadic
#6C31E2 #E26C31 #31E26C
tetradic
#6C31E2 #E2314F #A7E231 #31E2C5
square
#6C31E2 #E2314F #A7E231 #31E2C5
split-complementary
#6C31E2 #E2C531 #4FE231
monochromatic
#391386 #501ABB #6C31E2 #9267EA #B99CF1

Accessibility & contrast

On white

6.61
#6C31E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#6C31E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C31E2
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C31E2#FFFFFF#000000##FFFFFF
##6C31E21.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060E7
Deuteranopia (green-blind)
#0058DF
Tritanopia (blue-blind)
#3F658A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6c31e2;
/* rgb */ color: rgb(108, 49, 226);
/* oklch */ color: oklch(50.6% 0.243 289.9);
Tailwind
colors: {
  custom: {
    50: '#a271ec',
    500: '#6c31e2',
    950: '#000000',
  },
}
SCSS
$custom: #6c31e2;
$custom-light: #a271ec;
$custom-dark: #000000;
JSON
{
  "hex": "#6c31e2",
  "rgb": {
    "r": 108,
    "g": 49,
    "b": 226
  },
  "hsl": {
    "h": 260,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.5063,
    "c": 0.24312,
    "h": 289.9
  },
  "luminance": 0.10876
}

Semantic roles & 50–950 ramp

primary
#6C31E2
secondary
#C4DD92
accent
#F236B3
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#100816
muted
#7F7B84

Preview Lab

Preview with #6C31E2

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

Preview Lab → · Contrast checker → · Palette generator →

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