#6E42DC#6E42DC

#6E42DC is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.2% C 0.220 H 289.7°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#6E42DC
RGBrgb(110, 66, 220)
HSLhsl(257, 69%, 56%)
HSVhsv(257, 70%, 86%)
CMYKcmyk(50%, 70%, 0%, 13.7%)
CIE-LABlab(41.81, 54.49, -72.08)
CIE-LCHlch(41.81, 90.36, 307.09°)
OKLaboklab(52.23% 0.0739 -0.2069)
OKLCHoklch(52.23% 0.22 289.7)
XYZxyz(21.2932, 12.3778, 68.9635)
Luminance0.1238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E42DC #B0DC42
analogous
#4263DC #6E42DC #BB42DC
triadic
#6E42DC #DC6E42 #42DC6E
tetradic
#6E42DC #DC4263 #B0DC42 #42DCBB
square
#6E42DC #DC4263 #B0DC42 #42DCBB
split-complementary
#6E42DC #DCBB42 #63DC42
monochromatic
#3A1A8A #4F23BE #6E42DC #9676E6 #BDA9EF

Accessibility & contrast

On white

6.04
#6E42DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#6E42DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6E42DC
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E42DC#FFFFFF#000000##FFFFFF
##6E42DC1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E1
Deuteranopia (green-blind)
#005FD9
Tritanopia (blue-blind)
#476A8A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #6e42dc;
/* rgb */ color: rgb(110, 66, 220);
/* oklch */ color: oklch(52.2% 0.220 289.7);
Tailwind
colors: {
  custom: {
    50: '#a17ae8',
    500: '#6e42dc',
    950: '#000000',
  },
}
SCSS
$custom: #6e42dc;
$custom-light: #a17ae8;
$custom-dark: #000000;
JSON
{
  "hex": "#6e42dc",
  "rgb": {
    "r": 110,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 257.143,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.52234,
    "c": 0.21974,
    "h": 289.7
  },
  "luminance": 0.12379
}

Semantic roles & 50–950 ramp

primary
#6E42DC
secondary
#CBDD9D
accent
#EC3CB9
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6E42DC

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

Preview Lab → · Contrast checker → · Palette generator →

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