#6C42CF#6C42CF

#6C42CF is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.0% C 0.205 H 291.0°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#6C42CF
RGBrgb(108, 66, 207)
HSLhsl(258, 59%, 54%)
HSVhsv(258, 68%, 81%)
CMYKcmyk(47.8%, 68.1%, 0%, 18.8%)
CIE-LABlab(40.55, 50.58, -66.67)
CIE-LCHlch(40.55, 83.69, 307.18°)
OKLaboklab(50.96% 0.0734 -0.1911)
OKLCHoklch(50.96% 0.205 291)
XYZxyz(19.3919, 11.5888, 60.2345)
Luminance0.1159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C42CF #A5CF42
analogous
#425ECF #6C42CF #B242CF
triadic
#6C42CF #CF6C42 #42CF6C
tetradic
#6C42CF #CF425E #A5CF42 #42CFB2
square
#6C42CF #CF425E #A5CF42 #42CFB2
split-complementary
#6C42CF #CFB242 #5ECF42
monochromatic
#391F78 #502BA9 #6C42CF #9273DB #B8A4E8

Accessibility & contrast

On white

6.33
#6C42CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#6C42CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C42CF
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C42CF#FFFFFF#000000##FFFFFF
##6C42CF1.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D3
Deuteranopia (green-blind)
#005CCC
Tritanopia (blue-blind)
#4C6583
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6c42cf;
/* rgb */ color: rgb(108, 66, 207);
/* oklch */ color: oklch(51.0% 0.205 291.0);
Tailwind
colors: {
  custom: {
    50: '#9e79df',
    500: '#6c42cf',
    950: '#000000',
  },
}
SCSS
$custom: #6c42cf;
$custom-light: #9e79df;
$custom-dark: #000000;
JSON
{
  "hex": "#6c42cf",
  "rgb": {
    "r": 108,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 257.872,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.50964,
    "c": 0.20472,
    "h": 291
  },
  "luminance": 0.1159
}

Semantic roles & 50–950 ramp

primary
#6C42CF
secondary
#C3D598
accent
#E345B4
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6C42CF

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

Preview Lab → · Contrast checker → · Palette generator →

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