#6C42E0#6C42E0

#6C42E0 is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.4% C 0.224 H 288.3°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#6C42E0
RGBrgb(108, 66, 224)
HSLhsl(256, 72%, 57%)
HSVhsv(256, 71%, 88%)
CMYKcmyk(51.8%, 70.5%, 0%, 12.2%)
CIE-LABlab(41.95, 55.27, -74.15)
CIE-LCHlch(41.95, 92.49, 306.70°)
OKLaboklab(52.39% 0.0704 -0.2131)
OKLCHoklch(52.39% 0.224 288.3)
XYZxyz(21.5832, 12.4654, 71.7754)
Luminance0.1247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C42E0 #B6E042
analogous
#4267E0 #6C42E0 #BB42E0
triadic
#6C42E0 #E06C42 #42E06C
tetradic
#6C42E0 #E04267 #B6E042 #42E0BB
square
#6C42E0 #E04267 #B6E042 #42E0BB
split-complementary
#6C42E0 #E0BB42 #67E042
monochromatic
#381890 #4C20C5 #6C42E0 #9577E9 #BEABF1

Accessibility & contrast

On white

6.01
#6C42E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#6C42E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C42E0
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C42E0#FFFFFF#000000##FFFFFF
##6C42E01.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E5
Deuteranopia (green-blind)
#005FDD
Tritanopia (blue-blind)
#406C8D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #6c42e0;
/* rgb */ color: rgb(108, 66, 224);
/* oklch */ color: oklch(52.4% 0.224 288.3);
Tailwind
colors: {
  custom: {
    50: '#a17aeb',
    500: '#6c42e0',
    950: '#000000',
  },
}
SCSS
$custom: #6c42e0;
$custom-light: #a17aeb;
$custom-dark: #000000;
JSON
{
  "hex": "#6c42e0",
  "rgb": {
    "r": 108,
    "g": 66,
    "b": 224
  },
  "hsl": {
    "h": 255.949,
    "s": 71.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.52387,
    "c": 0.22438,
    "h": 288.3
  },
  "luminance": 0.12466
}

Semantic roles & 50–950 ramp

primary
#6C42E0
secondary
#CEDF9F
accent
#EF39BE
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6C42E0

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

Preview Lab → · Contrast checker → · Palette generator →

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