#6E42D2#6E42D2

#6E42D2 is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.4% C 0.208 H 291.3°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#6E42D2
RGBrgb(110, 66, 210)
HSLhsl(258, 62%, 54%)
HSVhsv(258, 69%, 82%)
CMYKcmyk(47.6%, 68.6%, 0%, 17.6%)
CIE-LABlab(41.00, 51.75, -67.67)
CIE-LCHlch(41.00, 85.19, 307.41°)
OKLaboklab(51.4% 0.0757 -0.194)
OKLCHoklch(51.4% 0.208 291.3)
XYZxyz(20.0082, 11.8638, 62.1960)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E42D2 #A6D242
analogous
#425ED2 #6E42D2 #B642D2
triadic
#6E42D2 #D26E42 #42D26E
tetradic
#6E42D2 #D2425E #A6D242 #42D2B6
square
#6E42D2 #D2425E #A6D242 #42D2B6
split-complementary
#6E42D2 #D2B642 #5ED242
monochromatic
#3A1E7C #5229AD #6E42D2 #9473DE #BAA5EA

Accessibility & contrast

On white

6.23
#6E42D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#6E42D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6E42D2
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E42D2#FFFFFF#000000##FFFFFF
##6E42D21.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D6
Deuteranopia (green-blind)
#005ECF
Tritanopia (blue-blind)
#4E6685
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6e42d2;
/* rgb */ color: rgb(110, 66, 210);
/* oklch */ color: oklch(51.4% 0.208 291.3);
Tailwind
colors: {
  custom: {
    50: '#a07ae1',
    500: '#6e42d2',
    950: '#000000',
  },
}
SCSS
$custom: #6e42d2;
$custom-light: #a07ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#6e42d2",
  "rgb": {
    "r": 110,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 258.333,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.51404,
    "c": 0.20823,
    "h": 291.3
  },
  "luminance": 0.11865
}

Semantic roles & 50–950 ramp

primary
#6E42D2
secondary
#C4D799
accent
#E543B3
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #6E42D2

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

Preview Lab → · Contrast checker → · Palette generator →

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