#6E42DF#6E42DF

#6E42DF is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.5% C 0.223 H 289.2°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#6E42DF
RGBrgb(110, 66, 223)
HSLhsl(257, 71%, 57%)
HSVhsv(257, 70%, 87%)
CMYKcmyk(50.7%, 70.4%, 0%, 12.5%)
CIE-LABlab(42.06, 55.31, -73.39)
CIE-LCHlch(42.06, 91.90, 307.00°)
OKLaboklab(52.49% 0.0734 -0.2108)
OKLCHoklch(52.49% 0.223 289.2)
XYZxyz(21.6940, 12.5382, 71.0748)
Luminance0.1254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E42DF #B3DF42
analogous
#4265DF #6E42DF #BC42DF
triadic
#6E42DF #DF6E42 #42DF6E
tetradic
#6E42DF #DF4265 #B3DF42 #42DFBC
square
#6E42DF #DF4265 #B3DF42 #42DFBC
split-complementary
#6E42DF #DFBC42 #65DF42
monochromatic
#39188E #4E21C3 #6E42DF #9676E8 #BEABF1

Accessibility & contrast

On white

5.99
#6E42DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#6E42DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6E42DF
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E42DF#FFFFFF#000000##FFFFFF
##6E42DF1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E4
Deuteranopia (green-blind)
#005FDC
Tritanopia (blue-blind)
#456B8C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #6e42df;
/* rgb */ color: rgb(110, 66, 223);
/* oklch */ color: oklch(52.5% 0.223 289.2);
Tailwind
colors: {
  custom: {
    50: '#a27aea',
    500: '#6e42df',
    950: '#000000',
  },
}
SCSS
$custom: #6e42df;
$custom-light: #a27aea;
$custom-dark: #000000;
JSON
{
  "hex": "#6e42df",
  "rgb": {
    "r": 110,
    "g": 66,
    "b": 223
  },
  "hsl": {
    "h": 256.815,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.52488,
    "c": 0.22316,
    "h": 289.2
  },
  "luminance": 0.12539
}

Semantic roles & 50–950 ramp

primary
#6E42DF
secondary
#CDDF9E
accent
#EE3ABB
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6E42DF

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

Preview Lab → · Contrast checker → · Palette generator →

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