#6C42CE#6C42CE

#6C42CE is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 50.9% C 0.204 H 291.2°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#6C42CE
RGBrgb(108, 66, 206)
HSLhsl(258, 59%, 53%)
HSVhsv(258, 68%, 81%)
CMYKcmyk(47.6%, 68%, 0%, 19.2%)
CIE-LABlab(40.48, 50.30, -66.22)
CIE-LCHlch(40.48, 83.16, 307.22°)
OKLaboklab(50.88% 0.0736 -0.1898)
OKLCHoklch(50.88% 0.204 291.2)
XYZxyz(19.2700, 11.5401, 59.5927)
Luminance0.1154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C42CE #A4CE42
analogous
#425ECE #6C42CE #B242CE
triadic
#6C42CE #CE6C42 #42CE6C
tetradic
#6C42CE #CE425E #A4CE42 #42CEB2
square
#6C42CE #CE425E #A4CE42 #42CEB2
split-complementary
#6C42CE #CEB242 #5ECE42
monochromatic
#391F77 #512BA7 #6C42CE #9273DB #B8A3E7

Accessibility & contrast

On white

6.35
#6C42CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#6C42CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C42CE
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C42CE#FFFFFF#000000##FFFFFF
##6C42CE1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D2
Deuteranopia (green-blind)
#005CCB
Tritanopia (blue-blind)
#4D6583
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6c42ce;
/* rgb */ color: rgb(108, 66, 206);
/* oklch */ color: oklch(50.9% 0.204 291.2);
Tailwind
colors: {
  custom: {
    50: '#9e79de',
    500: '#6c42ce',
    950: '#000000',
  },
}
SCSS
$custom: #6c42ce;
$custom-light: #9e79de;
$custom-dark: #000000;
JSON
{
  "hex": "#6c42ce",
  "rgb": {
    "r": 108,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 258,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.50883,
    "c": 0.20354,
    "h": 291.2
  },
  "luminance": 0.11541
}

Semantic roles & 50–950 ramp

primary
#6C42CE
secondary
#C2D498
accent
#E246B3
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6C42CE

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

Preview Lab → · Contrast checker → · Palette generator →

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