#6C42C8#6C42C8

#6C42C8 is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.4% C 0.196 H 292.3°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#6C42C8
RGBrgb(108, 66, 200)
HSLhsl(259, 55%, 52%)
HSVhsv(259, 67%, 78%)
CMYKcmyk(46%, 67%, 0%, 21.6%)
CIE-LABlab(40.01, 48.65, -63.51)
CIE-LCHlch(40.01, 80.01, 307.45°)
OKLaboklab(50.4% 0.0745 -0.1818)
OKLCHoklch(50.4% 0.196 292.3)
XYZxyz(18.5550, 11.2541, 55.8270)
Luminance0.1125 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C42C8 #9EC842
analogous
#425BC8 #6C42C8 #AF42C8
triadic
#6C42C8 #C86C42 #42C86C
tetradic
#6C42C8 #C8425B #9EC842 #42C8AF
square
#6C42C8 #C8425B #9EC842 #42C8AF
split-complementary
#6C42C8 #C8AF42 #5BC842
monochromatic
#39206F #512E9F #6C42C8 #9171D6 #B6A1E4

Accessibility & contrast

On white

6.46
#6C42C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#6C42C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C42C8
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C42C8#FFFFFF#000000##FFFFFF
##6C42C81.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CC
Deuteranopia (green-blind)
#005CC5
Tritanopia (blue-blind)
#50637F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6c42c8;
/* rgb */ color: rgb(108, 66, 200);
/* oklch */ color: oklch(50.4% 0.196 292.3);
Tailwind
colors: {
  custom: {
    50: '#9d79da',
    500: '#6c42c8',
    950: '#000000',
  },
}
SCSS
$custom: #6c42c8;
$custom-light: #9d79da;
$custom-dark: #000000;
JSON
{
  "hex": "#6c42c8",
  "rgb": {
    "r": 108,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 258.806,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.50399,
    "c": 0.19648,
    "h": 292.3
  },
  "luminance": 0.11255
}

Semantic roles & 50–950 ramp

primary
#6C42C8
secondary
#BED096
accent
#DE4AB0
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6C42C8

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

Preview Lab → · Contrast checker → · Palette generator →

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