#6842DF#6842DF

#6842DF is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 51.9% C 0.223 H 286.9°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#6842DF
RGBrgb(104, 66, 223)
HSLhsl(255, 71%, 57%)
HSVhsv(255, 70%, 87%)
CMYKcmyk(53.4%, 70.4%, 0%, 12.5%)
CIE-LABlab(41.48, 54.39, -74.36)
CIE-LCHlch(41.48, 92.13, 306.18°)
OKLaboklab(51.94% 0.065 -0.2138)
OKLCHoklch(51.94% 0.223 286.9)
XYZxyz(20.9725, 12.1661, 71.0409)
Luminance0.1217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6842DF #B9DF42
analogous
#426BDF #6842DF #B642DF
triadic
#6842DF #DF6842 #42DF68
tetradic
#6842DF #DF426B #B9DF42 #42DFB6
square
#6842DF #DF426B #B9DF42 #42DFB6
split-complementary
#6842DF #DFB642 #6BDF42
monochromatic
#35188E #4821C3 #6842DF #9276E8 #BCABF1

Accessibility & contrast

On white

6.12
#6842DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#6842DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6842DF
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6842DF#FFFFFF#000000##FFFFFF
##6842DF1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E4
Deuteranopia (green-blind)
#005DDC
Tritanopia (blue-blind)
#376C8C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #6842df;
/* rgb */ color: rgb(104, 66, 223);
/* oklch */ color: oklch(51.9% 0.223 286.9);
Tailwind
colors: {
  custom: {
    50: '#9e7aea',
    500: '#6842df',
    950: '#000000',
  },
}
SCSS
$custom: #6842df;
$custom-light: #9e7aea;
$custom-dark: #000000;
JSON
{
  "hex": "#6842df",
  "rgb": {
    "r": 104,
    "g": 66,
    "b": 223
  },
  "hsl": {
    "h": 254.522,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.51937,
    "c": 0.22346,
    "h": 286.9
  },
  "luminance": 0.12167
}

Semantic roles & 50–950 ramp

primary
#6842DF
secondary
#CFDF9E
accent
#EE3AC2
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6842DF

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

Preview Lab → · Contrast checker → · Palette generator →

#6842DF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva