#6C42E3#6C42E3

#6C42E3 is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.6% C 0.228 H 287.8°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#6C42E3
RGBrgb(108, 66, 227)
HSLhsl(256, 74%, 57%)
HSVhsv(256, 71%, 89%)
CMYKcmyk(52.4%, 70.9%, 0%, 11%)
CIE-LABlab(42.20, 56.10, -75.45)
CIE-LCHlch(42.20, 94.02, 306.64°)
OKLaboklab(52.65% 0.0698 -0.2168)
OKLCHoklch(52.65% 0.228 287.8)
XYZxyz(21.9936, 12.6295, 73.9370)
Luminance0.1263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C42E3 #B9E342
analogous
#4269E3 #6C42E3 #BC42E3
triadic
#6C42E3 #E36C42 #42E36C
tetradic
#6C42E3 #E34269 #B9E342 #42E3BC
square
#6C42E3 #E34269 #B9E342 #42E3BC
split-complementary
#6C42E3 #E3BC42 #69E342
monochromatic
#371695 #4B1ECA #6C42E3 #9577EB #BFADF3

Accessibility & contrast

On white

5.96
#6C42E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#6C42E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C42E3
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C42E3#FFFFFF#000000##FFFFFF
##6C42E31.005.963.535.96
#FFFFFF5.961.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E8
Deuteranopia (green-blind)
#005FE0
Tritanopia (blue-blind)
#3D6D8E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #6c42e3;
/* rgb */ color: rgb(108, 66, 227);
/* oklch */ color: oklch(52.6% 0.228 287.8);
Tailwind
colors: {
  custom: {
    50: '#a17aed',
    500: '#6c42e3',
    950: '#000000',
  },
}
SCSS
$custom: #6c42e3;
$custom-light: #a17aed;
$custom-dark: #000000;
JSON
{
  "hex": "#6c42e3",
  "rgb": {
    "r": 108,
    "g": 66,
    "b": 227
  },
  "hsl": {
    "h": 255.652,
    "s": 74.194,
    "l": 57.451
  },
  "oklch": {
    "l": 0.52645,
    "c": 0.22779,
    "h": 287.8
  },
  "luminance": 0.12631
}

Semantic roles & 50–950 ramp

primary
#6C42E3
secondary
#D0E1A0
accent
#F137C0
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6C42E3

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

Preview Lab → · Contrast checker → · Palette generator →

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