#6842D7#6842D7

#6842D7 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.3% C 0.214 H 288.1°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#6842D7
RGBrgb(104, 66, 215)
HSLhsl(255, 65%, 55%)
HSVhsv(255, 69%, 84%)
CMYKcmyk(51.6%, 69.3%, 0%, 15.7%)
CIE-LABlab(40.81, 52.13, -70.88)
CIE-LCHlch(40.81, 87.99, 306.33°)
OKLaboklab(51.25% 0.0665 -0.2036)
OKLCHoklch(51.25% 0.214 288.1)
XYZxyz(19.9193, 11.7448, 65.4942)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6842D7 #B1D742
analogous
#4266D7 #6842D7 #B342D7
triadic
#6842D7 #D76842 #42D768
tetradic
#6842D7 #D74266 #B1D742 #42D7B3
square
#6842D7 #D74266 #B1D742 #42D7B3
split-complementary
#6842D7 #D7B342 #66D742
monochromatic
#361C83 #4B26B5 #6842D7 #9075E2 #B9A7EC

Accessibility & contrast

On white

6.27
#6842D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#6842D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6842D7
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6842D7#FFFFFF#000000##FFFFFF
##6842D71.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DB
Deuteranopia (green-blind)
#005CD4
Tritanopia (blue-blind)
#3E6988
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6842d7;
/* rgb */ color: rgb(104, 66, 215);
/* oklch */ color: oklch(51.3% 0.214 288.1);
Tailwind
colors: {
  custom: {
    50: '#9d79e4',
    500: '#6842d7',
    950: '#000000',
  },
}
SCSS
$custom: #6842d7;
$custom-light: #9d79e4;
$custom-dark: #000000;
JSON
{
  "hex": "#6842d7",
  "rgb": {
    "r": 104,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 255.302,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.51252,
    "c": 0.21417,
    "h": 288.1
  },
  "luminance": 0.11746
}

Semantic roles & 50–950 ramp

primary
#6842D7
secondary
#CADA9B
accent
#E840BD
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6842D7

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

Preview Lab → · Contrast checker → · Palette generator →

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