#6E42E1#6E42E1

#6E42E1 is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.7% C 0.225 H 288.9°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#6E42E1
RGBrgb(110, 66, 225)
HSLhsl(257, 73%, 57%)
HSVhsv(257, 71%, 88%)
CMYKcmyk(51.1%, 70.7%, 0%, 11.8%)
CIE-LABlab(42.23, 55.86, -74.26)
CIE-LCHlch(42.23, 92.92, 306.95°)
OKLaboklab(52.66% 0.073 -0.2133)
OKLCHoklch(52.66% 0.225 288.9)
XYZxyz(21.9653, 12.6467, 72.5032)
Luminance0.1265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E42E1 #B5E142
analogous
#4265E1 #6E42E1 #BE42E1
triadic
#6E42E1 #E16E42 #42E16E
tetradic
#6E42E1 #E14265 #B5E142 #42E1BE
square
#6E42E1 #E14265 #B5E142 #42E1BE
split-complementary
#6E42E1 #E1BE42 #65E142
monochromatic
#391792 #4E1FC6 #6E42E1 #9777E9 #BFACF2

Accessibility & contrast

On white

5.95
#6E42E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #6E42E1
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E42E1#FFFFFF#000000##FFFFFF
##6E42E11.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E6
Deuteranopia (green-blind)
#0060DE
Tritanopia (blue-blind)
#446C8D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #6e42e1;
/* rgb */ color: rgb(110, 66, 225);
/* oklch */ color: oklch(52.7% 0.225 288.9);
Tailwind
colors: {
  custom: {
    50: '#a27aec',
    500: '#6e42e1',
    950: '#000000',
  },
}
SCSS
$custom: #6e42e1;
$custom-light: #a27aec;
$custom-dark: #000000;
JSON
{
  "hex": "#6e42e1",
  "rgb": {
    "r": 110,
    "g": 66,
    "b": 225
  },
  "hsl": {
    "h": 256.604,
    "s": 72.603,
    "l": 57.059
  },
  "oklch": {
    "l": 0.52658,
    "c": 0.22543,
    "h": 288.9
  },
  "luminance": 0.12648
}

Semantic roles & 50–950 ramp

primary
#6E42E1
secondary
#CEE09F
accent
#EF38BD
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6E42E1

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

Preview Lab → · Contrast checker → · Palette generator →

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