#6842D2#6842D2

#6842D2 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 50.8% C 0.208 H 288.9°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#6842D2
RGBrgb(104, 66, 210)
HSLhsl(256, 62%, 54%)
HSVhsv(256, 69%, 82%)
CMYKcmyk(50.5%, 68.6%, 0%, 17.6%)
CIE-LABlab(40.40, 50.73, -68.68)
CIE-LCHlch(40.40, 85.38, 306.45°)
OKLaboklab(50.83% 0.0674 -0.1971)
OKLCHoklch(50.83% 0.208 288.9)
XYZxyz(19.2866, 11.4918, 62.1622)
Luminance0.1149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6842D2 #ACD242
analogous
#4264D2 #6842D2 #B042D2
triadic
#6842D2 #D26842 #42D268
tetradic
#6842D2 #D24264 #ACD242 #42D2B0
square
#6842D2 #D24264 #ACD242 #42D2B0
split-complementary
#6842D2 #D2B042 #64D242
monochromatic
#361E7C #4C29AD #6842D2 #8F73DE #B7A5EA

Accessibility & contrast

On white

6.37
#6842D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#6842D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6842D2
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6842D2#FFFFFF#000000##FFFFFF
##6842D21.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D6
Deuteranopia (green-blind)
#005CCF
Tritanopia (blue-blind)
#426785
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6842d2;
/* rgb */ color: rgb(104, 66, 210);
/* oklch */ color: oklch(50.8% 0.208 288.9);
Tailwind
colors: {
  custom: {
    50: '#9c79e1',
    500: '#6842d2',
    950: '#000000',
  },
}
SCSS
$custom: #6842d2;
$custom-light: #9c79e1;
$custom-dark: #000000;
JSON
{
  "hex": "#6842d2",
  "rgb": {
    "r": 104,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 255.833,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.50832,
    "c": 0.20831,
    "h": 288.9
  },
  "luminance": 0.11493
}

Semantic roles & 50–950 ramp

primary
#6842D2
secondary
#C6D799
accent
#E543BA
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6842D2

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

Preview Lab → · Contrast checker → · Palette generator →

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