#6C42CA#6C42CA

#6C42CA is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.6% C 0.199 H 291.9°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#6C42CA
RGBrgb(108, 66, 202)
HSLhsl(259, 56%, 53%)
HSVhsv(259, 67%, 79%)
CMYKcmyk(46.5%, 67.3%, 0%, 20.8%)
CIE-LABlab(40.16, 49.20, -64.42)
CIE-LCHlch(40.16, 81.06, 307.37°)
OKLaboklab(50.56% 0.0742 -0.1845)
OKLCHoklch(50.56% 0.199 291.9)
XYZxyz(18.7903, 11.3482, 57.0660)
Luminance0.1135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C42CA #A0CA42
analogous
#425CCA #6C42CA #B042CA
triadic
#6C42CA #CA6C42 #42CA6C
tetradic
#6C42CA #CA425C #A0CA42 #42CAB0
square
#6C42CA #CA425C #A0CA42 #42CAB0
split-complementary
#6C42CA #CAB042 #5CCA42
monochromatic
#392072 #512DA2 #6C42CA #9172D7 #B6A2E5

Accessibility & contrast

On white

6.42
#6C42CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#6C42CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C42CA
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C42CA#FFFFFF#000000##FFFFFF
##6C42CA1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CE
Deuteranopia (green-blind)
#005CC7
Tritanopia (blue-blind)
#4F6481
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6c42ca;
/* rgb */ color: rgb(108, 66, 202);
/* oklch */ color: oklch(50.6% 0.199 291.9);
Tailwind
colors: {
  custom: {
    50: '#9e79db',
    500: '#6c42ca',
    950: '#000000',
  },
}
SCSS
$custom: #6c42ca;
$custom-light: #9e79db;
$custom-dark: #000000;
JSON
{
  "hex": "#6c42ca",
  "rgb": {
    "r": 108,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 258.529,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.50559,
    "c": 0.19885,
    "h": 291.9
  },
  "luminance": 0.11349
}

Semantic roles & 50–950 ramp

primary
#6C42CA
secondary
#BFD196
accent
#DF48B1
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6C42CA

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

Preview Lab → · Contrast checker → · Palette generator →

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