#6C42E1#6C42E1

#6C42E1 is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.5% C 0.226 H 288.1°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#6C42E1
RGBrgb(108, 66, 225)
HSLhsl(256, 73%, 57%)
HSVhsv(256, 71%, 88%)
CMYKcmyk(52%, 70.7%, 0%, 11.8%)
CIE-LABlab(42.03, 55.55, -74.59)
CIE-LCHlch(42.03, 93.00, 306.68°)
OKLaboklab(52.47% 0.0702 -0.2143)
OKLCHoklch(52.47% 0.226 288.1)
XYZxyz(21.7192, 12.5198, 72.4917)
Luminance0.1252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C42E1 #B7E142
analogous
#4268E1 #6C42E1 #BC42E1
triadic
#6C42E1 #E16C42 #42E16C
tetradic
#6C42E1 #E14268 #B7E142 #42E1BC
square
#6C42E1 #E14268 #B7E142 #42E1BC
split-complementary
#6C42E1 #E1BC42 #68E142
monochromatic
#371792 #4C1FC6 #6C42E1 #9577E9 #BEACF2

Accessibility & contrast

On white

5.99
#6C42E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#6C42E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C42E1
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C42E1#FFFFFF#000000##FFFFFF
##6C42E11.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E6
Deuteranopia (green-blind)
#005FDE
Tritanopia (blue-blind)
#3F6C8D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #6c42e1;
/* rgb */ color: rgb(108, 66, 225);
/* oklch */ color: oklch(52.5% 0.226 288.1);
Tailwind
colors: {
  custom: {
    50: '#a17aec',
    500: '#6c42e1',
    950: '#000000',
  },
}
SCSS
$custom: #6c42e1;
$custom-light: #a17aec;
$custom-dark: #000000;
JSON
{
  "hex": "#6c42e1",
  "rgb": {
    "r": 108,
    "g": 66,
    "b": 225
  },
  "hsl": {
    "h": 255.849,
    "s": 72.603,
    "l": 57.059
  },
  "oklch": {
    "l": 0.52473,
    "c": 0.22552,
    "h": 288.1
  },
  "luminance": 0.12521
}

Semantic roles & 50–950 ramp

primary
#6C42E1
secondary
#CFE09F
accent
#EF38BF
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6C42E1

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

Preview Lab → · Contrast checker → · Palette generator →

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