#6842E7#6842E7

#6842E7 is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.6% C 0.233 H 285.8°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#6842E7
RGBrgb(104, 66, 231)
HSLhsl(254, 77%, 58%)
HSVhsv(254, 71%, 91%)
CMYKcmyk(55%, 71.4%, 0%, 9.4%)
CIE-LABlab(42.17, 56.63, -77.79)
CIE-LCHlch(42.17, 96.22, 306.06°)
OKLaboklab(52.64% 0.0634 -0.2238)
OKLCHoklch(52.64% 0.233 285.8)
XYZxyz(22.0766, 12.6078, 76.8561)
Luminance0.1261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6842E7 #C1E742
analogous
#426EE7 #6842E7 #BA42E7
triadic
#6842E7 #E76842 #42E768
tetradic
#6842E7 #E7426E #C1E742 #42E7BA
square
#6842E7 #E7426E #C1E742 #42E7BA
split-complementary
#6842E7 #E7BA42 #6EE742
monochromatic
#33149B #451BD1 #6842E7 #9378EE #BFAFF5

Accessibility & contrast

On white

5.96
#6842E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#6842E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6842E7
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6842E7#FFFFFF#000000##FFFFFF
##6842E71.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068EC
Deuteranopia (green-blind)
#005FE4
Tritanopia (blue-blind)
#2D6F91
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #6842e7;
/* rgb */ color: rgb(104, 66, 231);
/* oklch */ color: oklch(52.6% 0.233 285.8);
Tailwind
colors: {
  custom: {
    50: '#9f7af0',
    500: '#6842e7',
    950: '#000000',
  },
}
SCSS
$custom: #6842e7;
$custom-light: #9f7af0;
$custom-dark: #000000;
JSON
{
  "hex": "#6842e7",
  "rgb": {
    "r": 104,
    "g": 66,
    "b": 231
  },
  "hsl": {
    "h": 253.818,
    "s": 77.465,
    "l": 58.235
  },
  "oklch": {
    "l": 0.52636,
    "c": 0.23264,
    "h": 285.8
  },
  "luminance": 0.12609
}

Semantic roles & 50–950 ramp

primary
#6842E7
secondary
#D4E3A2
accent
#F434C8
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6842E7

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

Preview Lab → · Contrast checker → · Palette generator →

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