#6E42BB#6E42BB

#6E42BB is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.6% C 0.181 H 295.8°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#6E42BB
RGBrgb(110, 66, 187)
HSLhsl(262, 48%, 50%)
HSVhsv(262, 65%, 73%)
CMYKcmyk(41.2%, 64.7%, 0%, 26.7%)
CIE-LABlab(39.24, 45.51, -57.16)
CIE-LCHlch(39.24, 73.06, 308.53°)
OKLaboklab(49.59% 0.0788 -0.1631)
OKLCHoklch(49.59% 0.181 295.8)
XYZxyz(17.3459, 10.7989, 48.1746)
Luminance0.1080 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E42BB #8FBB42
analogous
#4253BB #6E42BB #AB42BB
triadic
#6E42BB #BB6E42 #42BB6E
tetradic
#6E42BB #BB4253 #8FBB42 #42BBAB
square
#6E42BB #BB4253 #8FBB42 #42BBAB
split-complementary
#6E42BB #BBAB42 #53BB42
monochromatic
#392261 #53328E #6E42BB #906ECC #B39CDC

Accessibility & contrast

On white

6.65
#6E42BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#6E42BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6E42BB
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E42BB#FFFFFF#000000##FFFFFF
##6E42BB1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBF
Deuteranopia (green-blind)
#005BB8
Tritanopia (blue-blind)
#5A5E78
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6e42bb;
/* rgb */ color: rgb(110, 66, 187);
/* oklch */ color: oklch(49.6% 0.181 295.8);
Tailwind
colors: {
  custom: {
    50: '#9d79d0',
    500: '#6e42bb',
    950: '#000000',
  },
}
SCSS
$custom: #6e42bb;
$custom-light: #9d79d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6e42bb",
  "rgb": {
    "r": 110,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 261.818,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.4959,
    "c": 0.18113,
    "h": 295.8
  },
  "luminance": 0.10799
}

Semantic roles & 50–950 ramp

primary
#6E42BB
secondary
#B4C891
accent
#D750A6
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#0F0914
muted
#7F7B82

Preview Lab

Preview with #6E42BB

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

Preview Lab → · Contrast checker → · Palette generator →

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