#6842E2#6842E2

#6842E2 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.2% C 0.227 H 286.5°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#6842E2
RGBrgb(104, 66, 226)
HSLhsl(254, 73%, 57%)
HSVhsv(254, 71%, 89%)
CMYKcmyk(54%, 70.8%, 0%, 11.4%)
CIE-LABlab(41.73, 55.23, -75.65)
CIE-LCHlch(41.73, 93.67, 306.13°)
OKLaboklab(52.2% 0.0644 -0.2176)
OKLCHoklch(52.2% 0.227 286.5)
XYZxyz(21.3805, 12.3293, 73.1900)
Luminance0.1233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6842E2 #BCE242
analogous
#426CE2 #6842E2 #B842E2
triadic
#6842E2 #E26842 #42E268
tetradic
#6842E2 #E2426C #BCE242 #42E2B8
square
#6842E2 #E2426C #BCE242 #42E2B8
split-complementary
#6842E2 #E2B842 #6CE242
monochromatic
#341793 #471FC8 #6842E2 #9277EA #BDACF2

Accessibility & contrast

On white

6.06
#6842E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#6842E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6842E2
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6842E2#FFFFFF#000000##FFFFFF
##6842E21.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E7
Deuteranopia (green-blind)
#005EDF
Tritanopia (blue-blind)
#336D8E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #6842e2;
/* rgb */ color: rgb(104, 66, 226);
/* oklch */ color: oklch(52.2% 0.227 286.5);
Tailwind
colors: {
  custom: {
    50: '#9f7aec',
    500: '#6842e2',
    950: '#000000',
  },
}
SCSS
$custom: #6842e2;
$custom-light: #9f7aec;
$custom-dark: #000000;
JSON
{
  "hex": "#6842e2",
  "rgb": {
    "r": 104,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 254.25,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.52198,
    "c": 0.22692,
    "h": 286.5
  },
  "luminance": 0.1233
}

Semantic roles & 50–950 ramp

primary
#6842E2
secondary
#D1E09F
accent
#F038C4
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6842E2

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

Preview Lab → · Contrast checker → · Palette generator →

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