#6842DC#6842DC

#6842DC is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.7% C 0.220 H 287.3°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#6842DC
RGBrgb(104, 66, 220)
HSLhsl(255, 69%, 56%)
HSVhsv(255, 70%, 86%)
CMYKcmyk(52.7%, 70%, 0%, 13.7%)
CIE-LABlab(41.23, 53.54, -73.07)
CIE-LCHlch(41.23, 90.58, 306.23°)
OKLaboklab(51.68% 0.0656 -0.21)
OKLCHoklch(51.68% 0.22 287.3)
XYZxyz(20.5716, 12.0058, 68.9297)
Luminance0.1201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6842DC #B6DC42
analogous
#4269DC #6842DC #B542DC
triadic
#6842DC #DC6842 #42DC68
tetradic
#6842DC #DC4269 #B6DC42 #42DCB5
square
#6842DC #DC4269 #B6DC42 #42DCB5
split-complementary
#6842DC #DCB542 #69DC42
monochromatic
#351A8A #4923BE #6842DC #9176E6 #BBA9EF

Accessibility & contrast

On white

6.17
#6842DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#6842DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6842DC
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6842DC#FFFFFF#000000##FFFFFF
##6842DC1.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E1
Deuteranopia (green-blind)
#005DD9
Tritanopia (blue-blind)
#3A6A8A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6842dc;
/* rgb */ color: rgb(104, 66, 220);
/* oklch */ color: oklch(51.7% 0.220 287.3);
Tailwind
colors: {
  custom: {
    50: '#9e7ae8',
    500: '#6842dc',
    950: '#000000',
  },
}
SCSS
$custom: #6842dc;
$custom-light: #9e7ae8;
$custom-dark: #000000;
JSON
{
  "hex": "#6842dc",
  "rgb": {
    "r": 104,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 254.805,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.51679,
    "c": 0.21999,
    "h": 287.3
  },
  "luminance": 0.12007
}

Semantic roles & 50–950 ramp

primary
#6842DC
secondary
#CDDD9D
accent
#EC3CC0
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6842DC

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

Preview Lab → · Contrast checker → · Palette generator →

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