#6E42E2#6E42E2

#6E42E2 is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.7% C 0.227 H 288.7°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#6E42E2
RGBrgb(110, 66, 226)
HSLhsl(257, 73%, 57%)
HSVhsv(257, 71%, 89%)
CMYKcmyk(51.3%, 70.8%, 0%, 11.4%)
CIE-LABlab(42.31, 56.13, -74.69)
CIE-LCHlch(42.31, 93.43, 306.93°)
OKLaboklab(52.74% 0.0728 -0.2146)
OKLCHoklch(52.74% 0.227 288.7)
XYZxyz(22.1021, 12.7014, 73.2238)
Luminance0.1270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E42E2 #B6E242
analogous
#4266E2 #6E42E2 #BE42E2
triadic
#6E42E2 #E26E42 #42E26E
tetradic
#6E42E2 #E24266 #B6E242 #42E2BE
square
#6E42E2 #E24266 #B6E242 #42E2BE
split-complementary
#6E42E2 #E2BE42 #66E242
monochromatic
#391793 #4D1FC8 #6E42E2 #9777EA #BFACF2

Accessibility & contrast

On white

5.93
#6E42E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#6E42E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6E42E2
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E42E2#FFFFFF#000000##FFFFFF
##6E42E21.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E7
Deuteranopia (green-blind)
#0060DF
Tritanopia (blue-blind)
#436C8E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #6e42e2;
/* rgb */ color: rgb(110, 66, 226);
/* oklch */ color: oklch(52.7% 0.227 288.7);
Tailwind
colors: {
  custom: {
    50: '#a27aec',
    500: '#6e42e2',
    950: '#000000',
  },
}
SCSS
$custom: #6e42e2;
$custom-light: #a27aec;
$custom-dark: #000000;
JSON
{
  "hex": "#6e42e2",
  "rgb": {
    "r": 110,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 256.5,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.52743,
    "c": 0.22657,
    "h": 288.7
  },
  "luminance": 0.12702
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6E42E2

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

Preview Lab → · Contrast checker → · Palette generator →

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