#6C42D2#6C42D2

#6C42D2 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.2% C 0.208 H 290.5°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#6C42D2
RGBrgb(108, 66, 210)
HSLhsl(258, 62%, 54%)
HSVhsv(258, 69%, 82%)
CMYKcmyk(48.6%, 68.6%, 0%, 17.6%)
CIE-LABlab(40.79, 51.41, -68.01)
CIE-LCHlch(40.79, 85.25, 307.08°)
OKLaboklab(51.21% 0.0729 -0.195)
OKLCHoklch(51.21% 0.208 290.5)
XYZxyz(19.7621, 11.7369, 62.1845)
Luminance0.1174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C42D2 #A8D242
analogous
#4260D2 #6C42D2 #B442D2
triadic
#6C42D2 #D26C42 #42D26C
tetradic
#6C42D2 #D24260 #A8D242 #42D2B4
square
#6C42D2 #D24260 #A8D242 #42D2B4
split-complementary
#6C42D2 #D2B442 #60D242
monochromatic
#391E7C #5029AD #6C42D2 #9273DE #B9A5EA

Accessibility & contrast

On white

6.27
#6C42D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#6C42D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C42D2
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C42D2#FFFFFF#000000##FFFFFF
##6C42D21.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D6
Deuteranopia (green-blind)
#005DCF
Tritanopia (blue-blind)
#4A6685
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6c42d2;
/* rgb */ color: rgb(108, 66, 210);
/* oklch */ color: oklch(51.2% 0.208 290.5);
Tailwind
colors: {
  custom: {
    50: '#9f79e1',
    500: '#6c42d2',
    950: '#000000',
  },
}
SCSS
$custom: #6c42d2;
$custom-light: #9f79e1;
$custom-dark: #000000;
JSON
{
  "hex": "#6c42d2",
  "rgb": {
    "r": 108,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 257.5,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.51211,
    "c": 0.20823,
    "h": 290.5
  },
  "luminance": 0.11738
}

Semantic roles & 50–950 ramp

primary
#6C42D2
secondary
#C5D799
accent
#E543B6
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6C42D2

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

Preview Lab → · Contrast checker → · Palette generator →

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