#6C42CC#6C42CC

#6C42CC is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 50.7% C 0.201 H 291.5°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#6C42CC
RGBrgb(108, 66, 204)
HSLhsl(258, 58%, 53%)
HSVhsv(258, 68%, 80%)
CMYKcmyk(47.1%, 67.6%, 0%, 20%)
CIE-LABlab(40.32, 49.75, -65.33)
CIE-LCHlch(40.32, 82.11, 307.29°)
OKLaboklab(50.72% 0.0739 -0.1871)
OKLCHoklch(50.72% 0.201 291.5)
XYZxyz(19.0286, 11.4435, 58.3213)
Luminance0.1144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C42CC #A2CC42
analogous
#425DCC #6C42CC #B142CC
triadic
#6C42CC #CC6C42 #42CC6C
tetradic
#6C42CC #CC425D #A2CC42 #42CCB1
square
#6C42CC #CC425D #A2CC42 #42CCB1
split-complementary
#6C42CC #CCB142 #5DCC42
monochromatic
#391F74 #512CA4 #6C42CC #9172D9 #B7A2E6

Accessibility & contrast

On white

6.39
#6C42CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#6C42CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C42CC
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C42CC#FFFFFF#000000##FFFFFF
##6C42CC1.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D0
Deuteranopia (green-blind)
#005CC9
Tritanopia (blue-blind)
#4E6482
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6c42cc;
/* rgb */ color: rgb(108, 66, 204);
/* oklch */ color: oklch(50.7% 0.201 291.5);
Tailwind
colors: {
  custom: {
    50: '#9e79dd',
    500: '#6c42cc',
    950: '#000000',
  },
}
SCSS
$custom: #6c42cc;
$custom-light: #9e79dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6c42cc",
  "rgb": {
    "r": 108,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 258.261,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.5072,
    "c": 0.2012,
    "h": 291.5
  },
  "luminance": 0.11444
}

Semantic roles & 50–950 ramp

primary
#6C42CC
secondary
#C1D397
accent
#E147B2
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6C42CC

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

Preview Lab → · Contrast checker → · Palette generator →

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