#6E42D3#6E42D3

#6E42D3 is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.5% C 0.209 H 291.2°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#6E42D3
RGBrgb(110, 66, 211)
HSLhsl(258, 62%, 54%)
HSVhsv(258, 69%, 83%)
CMYKcmyk(47.9%, 68.7%, 0%, 17.3%)
CIE-LABlab(41.08, 52.02, -68.12)
CIE-LCHlch(41.08, 85.71, 307.37°)
OKLaboklab(51.49% 0.0756 -0.1953)
OKLCHoklch(51.49% 0.209 291.2)
XYZxyz(20.1332, 11.9138, 62.8542)
Luminance0.1192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E42D3 #A7D342
analogous
#425FD3 #6E42D3 #B742D3
triadic
#6E42D3 #D36E42 #42D36E
tetradic
#6E42D3 #D3425F #A7D342 #42D3B7
square
#6E42D3 #D3425F #A7D342 #42D3B7
split-complementary
#6E42D3 #D3B742 #5FD342
monochromatic
#3A1D7D #5229AF #6E42D3 #9474DF #BAA5EA

Accessibility & contrast

On white

6.21
#6E42D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#6E42D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6E42D3
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E42D3#FFFFFF#000000##FFFFFF
##6E42D31.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D7
Deuteranopia (green-blind)
#005ED0
Tritanopia (blue-blind)
#4D6785
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6e42d3;
/* rgb */ color: rgb(110, 66, 211);
/* oklch */ color: oklch(51.5% 0.209 291.2);
Tailwind
colors: {
  custom: {
    50: '#a07ae2',
    500: '#6e42d3',
    950: '#000000',
  },
}
SCSS
$custom: #6e42d3;
$custom-light: #a07ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#6e42d3",
  "rgb": {
    "r": 110,
    "g": 66,
    "b": 211
  },
  "hsl": {
    "h": 258.207,
    "s": 62.232,
    "l": 54.314
  },
  "oklch": {
    "l": 0.51486,
    "c": 0.20939,
    "h": 291.2
  },
  "luminance": 0.11915
}

Semantic roles & 50–950 ramp

primary
#6E42D3
secondary
#C4D79A
accent
#E542B4
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100915
muted
#7F7B84

Preview Lab

Preview with #6E42D3

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

Preview Lab → · Contrast checker → · Palette generator →

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