#6E42DB#6E42DB

#6E42DB is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.1% C 0.219 H 289.8°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#6E42DB
RGBrgb(110, 66, 219)
HSLhsl(257, 68%, 56%)
HSVhsv(257, 70%, 86%)
CMYKcmyk(49.8%, 69.9%, 0%, 14.1%)
CIE-LABlab(41.73, 54.21, -71.65)
CIE-LCHlch(41.73, 89.85, 307.11°)
OKLaboklab(52.15% 0.0741 -0.2056)
OKLCHoklch(52.15% 0.219 289.8)
XYZxyz(21.1611, 12.3250, 68.2681)
Luminance0.1233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E42DB #AFDB42
analogous
#4262DB #6E42DB #BA42DB
triadic
#6E42DB #DB6E42 #42DB6E
tetradic
#6E42DB #DB4262 #AFDB42 #42DBBA
square
#6E42DB #DB4262 #AFDB42 #42DBBA
split-complementary
#6E42DB #DBBA42 #62DB42
monochromatic
#3A1A89 #5024BC #6E42DB #9575E5 #BDA9EF

Accessibility & contrast

On white

6.06
#6E42DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#6E42DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6E42DB
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E42DB#FFFFFF#000000##FFFFFF
##6E42DB1.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E0
Deuteranopia (green-blind)
#005FD8
Tritanopia (blue-blind)
#486A8A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #6e42db;
/* rgb */ color: rgb(110, 66, 219);
/* oklch */ color: oklch(52.1% 0.219 289.8);
Tailwind
colors: {
  custom: {
    50: '#a17ae7',
    500: '#6e42db',
    950: '#000000',
  },
}
SCSS
$custom: #6e42db;
$custom-light: #a17ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#6e42db",
  "rgb": {
    "r": 110,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 257.255,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.5215,
    "c": 0.21859,
    "h": 289.8
  },
  "luminance": 0.12326
}

Semantic roles & 50–950 ramp

primary
#6E42DB
secondary
#CADC9D
accent
#EB3DB9
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6E42DB

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

Preview Lab → · Contrast checker → · Palette generator →

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