#6E42CC#6E42CC

#6E42CC is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 50.9% C 0.201 H 292.4°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#6E42CC
RGBrgb(110, 66, 204)
HSLhsl(259, 58%, 53%)
HSVhsv(259, 68%, 80%)
CMYKcmyk(46.1%, 67.6%, 0%, 20%)
CIE-LABlab(40.52, 50.11, -64.98)
CIE-LCHlch(40.52, 82.06, 307.64°)
OKLaboklab(50.92% 0.0767 -0.1861)
OKLCHoklch(50.92% 0.201 292.4)
XYZxyz(19.2747, 11.5704, 58.3328)
Luminance0.1157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E42CC #A0CC42
analogous
#425BCC #6E42CC #B342CC
triadic
#6E42CC #CC6E42 #42CC6E
tetradic
#6E42CC #CC425B #A0CC42 #42CCB3
square
#6E42CC #CC425B #A0CC42 #42CCB3
split-complementary
#6E42CC #CCB342 #5BCC42
monochromatic
#3A1F74 #532CA4 #6E42CC #9372D9 #B8A2E6

Accessibility & contrast

On white

6.34
#6E42CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#6E42CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6E42CC
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E42CC#FFFFFF#000000##FFFFFF
##6E42CC1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D0
Deuteranopia (green-blind)
#005DC9
Tritanopia (blue-blind)
#526482
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6e42cc;
/* rgb */ color: rgb(110, 66, 204);
/* oklch */ color: oklch(50.9% 0.201 292.4);
Tailwind
colors: {
  custom: {
    50: '#9f79dd',
    500: '#6e42cc',
    950: '#000000',
  },
}
SCSS
$custom: #6e42cc;
$custom-light: #9f79dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6e42cc",
  "rgb": {
    "r": 110,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 259.13,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.50918,
    "c": 0.20124,
    "h": 292.4
  },
  "luminance": 0.11571
}

Semantic roles & 50–950 ramp

primary
#6E42CC
secondary
#C0D397
accent
#E147B0
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6E42CC

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

Preview Lab → · Contrast checker → · Palette generator →

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