#6C42D6#6C42D6

#6C42D6 is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.5% C 0.213 H 289.8°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#6C42D6
RGBrgb(108, 66, 214)
HSLhsl(257, 64%, 55%)
HSVhsv(257, 69%, 84%)
CMYKcmyk(49.5%, 69.2%, 0%, 16.1%)
CIE-LABlab(41.12, 52.51, -69.78)
CIE-LCHlch(41.12, 87.33, 306.96°)
OKLaboklab(51.54% 0.0722 -0.2002)
OKLCHoklch(51.54% 0.213 289.8)
XYZxyz(20.2667, 11.9388, 64.8418)
Luminance0.1194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C42D6 #ACD642
analogous
#4262D6 #6C42D6 #B642D6
triadic
#6C42D6 #D66C42 #42D66C
tetradic
#6C42D6 #D64262 #ACD642 #42D6B6
square
#6C42D6 #D64262 #ACD642 #42D6B6
split-complementary
#6C42D6 #D6B642 #62D642
monochromatic
#391C82 #4F27B4 #6C42D6 #9374E1 #BAA7EC

Accessibility & contrast

On white

6.20
#6C42D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#6C42D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C42D6
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C42D6#FFFFFF#000000##FFFFFF
##6C42D61.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DA
Deuteranopia (green-blind)
#005DD3
Tritanopia (blue-blind)
#476887
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6c42d6;
/* rgb */ color: rgb(108, 66, 214);
/* oklch */ color: oklch(51.5% 0.213 289.8);
Tailwind
colors: {
  custom: {
    50: '#9f7ae4',
    500: '#6c42d6',
    950: '#000000',
  },
}
SCSS
$custom: #6c42d6;
$custom-light: #9f7ae4;
$custom-dark: #000000;
JSON
{
  "hex": "#6c42d6",
  "rgb": {
    "r": 108,
    "g": 66,
    "b": 214
  },
  "hsl": {
    "h": 257.027,
    "s": 64.348,
    "l": 54.902
  },
  "oklch": {
    "l": 0.51542,
    "c": 0.21287,
    "h": 289.8
  },
  "luminance": 0.1194
}

Semantic roles & 50–950 ramp

primary
#6C42D6
secondary
#C7D99B
accent
#E740B8
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6C42D6

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

Preview Lab → · Contrast checker → · Palette generator →

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