#6C42CB#6C42CB

#6C42CB is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 50.6% C 0.200 H 291.7°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#6C42CB
RGBrgb(108, 66, 203)
HSLhsl(258, 57%, 53%)
HSVhsv(258, 67%, 80%)
CMYKcmyk(46.8%, 67.5%, 0%, 20.4%)
CIE-LABlab(40.24, 49.48, -64.87)
CIE-LCHlch(40.24, 81.59, 307.33°)
OKLaboklab(50.64% 0.074 -0.1858)
OKLCHoklch(50.64% 0.2 291.7)
XYZxyz(18.9090, 11.3957, 57.6916)
Luminance0.1140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C42CB #A1CB42
analogous
#425DCB #6C42CB #B042CB
triadic
#6C42CB #CB6C42 #42CB6C
tetradic
#6C42CB #CB425D #A1CB42 #42CBB0
square
#6C42CB #CB425D #A1CB42 #42CBB0
split-complementary
#6C42CB #CBB042 #5DCB42
monochromatic
#392073 #512DA3 #6C42CB #9172D8 #B7A2E5

Accessibility & contrast

On white

6.40
#6C42CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#6C42CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C42CB
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C42CB#FFFFFF#000000##FFFFFF
##6C42CB1.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6c42cb;
/* rgb */ color: rgb(108, 66, 203);
/* oklch */ color: oklch(50.6% 0.200 291.7);
Tailwind
colors: {
  custom: {
    50: '#9e79dc',
    500: '#6c42cb',
    950: '#000000',
  },
}
SCSS
$custom: #6c42cb;
$custom-light: #9e79dc;
$custom-dark: #000000;
JSON
{
  "hex": "#6c42cb",
  "rgb": {
    "r": 108,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 258.394,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.5064,
    "c": 0.20003,
    "h": 291.7
  },
  "luminance": 0.11396
}

Semantic roles & 50–950 ramp

primary
#6C42CB
secondary
#C0D297
accent
#E048B1
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6C42CB

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

Preview Lab → · Contrast checker → · Palette generator →

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