#6842CF#6842CF

#6842CF is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.6% C 0.205 H 289.3°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#6842CF
RGBrgb(104, 66, 207)
HSLhsl(256, 59%, 54%)
HSVhsv(256, 68%, 81%)
CMYKcmyk(49.8%, 68.1%, 0%, 18.8%)
CIE-LABlab(40.15, 49.88, -67.35)
CIE-LCHlch(40.15, 83.81, 306.53°)
OKLaboklab(50.58% 0.0678 -0.1932)
OKLCHoklch(50.58% 0.205 289.3)
XYZxyz(18.9164, 11.3437, 60.2122)
Luminance0.1134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6842CF #A9CF42
analogous
#4262CF #6842CF #AE42CF
triadic
#6842CF #CF6842 #42CF68
tetradic
#6842CF #CF4262 #A9CF42 #42CFAE
square
#6842CF #CF4262 #A9CF42 #42CFAE
split-complementary
#6842CF #CFAE42 #62CF42
monochromatic
#371F78 #4D2BA9 #6842CF #8F73DB #B6A4E8

Accessibility & contrast

On white

6.42
#6842CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#6842CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6842CF
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6842CF#FFFFFF#000000##FFFFFF
##6842CF1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D3
Deuteranopia (green-blind)
#005BCC
Tritanopia (blue-blind)
#446683
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6842cf;
/* rgb */ color: rgb(104, 66, 207);
/* oklch */ color: oklch(50.6% 0.205 289.3);
Tailwind
colors: {
  custom: {
    50: '#9c79df',
    500: '#6842cf',
    950: '#000000',
  },
}
SCSS
$custom: #6842cf;
$custom-light: #9c79df;
$custom-dark: #000000;
JSON
{
  "hex": "#6842cf",
  "rgb": {
    "r": 104,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 256.17,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.50582,
    "c": 0.20478,
    "h": 289.3
  },
  "luminance": 0.11344
}

Semantic roles & 50–950 ramp

primary
#6842CF
secondary
#C4D598
accent
#E345B8
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6842CF

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

Preview Lab → · Contrast checker → · Palette generator →

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