#6C42E2#6C42E2

#6C42E2 is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.6% C 0.227 H 288.0°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#6C42E2
RGBrgb(108, 66, 226)
HSLhsl(256, 73%, 57%)
HSVhsv(256, 71%, 89%)
CMYKcmyk(52.2%, 70.8%, 0%, 11.4%)
CIE-LABlab(42.12, 55.83, -75.02)
CIE-LCHlch(42.12, 93.51, 306.66°)
OKLaboklab(52.56% 0.07 -0.2156)
OKLCHoklch(52.56% 0.227 288)
XYZxyz(21.8560, 12.5745, 73.2122)
Luminance0.1258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C42E2 #B8E242
analogous
#4268E2 #6C42E2 #BC42E2
triadic
#6C42E2 #E26C42 #42E26C
tetradic
#6C42E2 #E24268 #B8E242 #42E2BC
square
#6C42E2 #E24268 #B8E242 #42E2BC
split-complementary
#6C42E2 #E2BC42 #68E242
monochromatic
#371793 #4B1FC8 #6C42E2 #9577EA #BFACF2

Accessibility & contrast

On white

5.97
#6C42E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#6C42E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C42E2
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C42E2#FFFFFF#000000##FFFFFF
##6C42E21.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E7
Deuteranopia (green-blind)
#005FDF
Tritanopia (blue-blind)
#3E6C8E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #6c42e2;
/* rgb */ color: rgb(108, 66, 226);
/* oklch */ color: oklch(52.6% 0.227 288.0);
Tailwind
colors: {
  custom: {
    50: '#a17aec',
    500: '#6c42e2',
    950: '#000000',
  },
}
SCSS
$custom: #6c42e2;
$custom-light: #a17aec;
$custom-dark: #000000;
JSON
{
  "hex": "#6c42e2",
  "rgb": {
    "r": 108,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 255.75,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.52559,
    "c": 0.22666,
    "h": 288
  },
  "luminance": 0.12576
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6C42E2

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

Preview Lab → · Contrast checker → · Palette generator →

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