#6842D8#6842D8

#6842D8 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.3% C 0.215 H 287.9°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#6842D8
RGBrgb(104, 66, 216)
HSLhsl(255, 66%, 55%)
HSVhsv(255, 69%, 85%)
CMYKcmyk(51.9%, 69.4%, 0%, 15.3%)
CIE-LABlab(40.89, 52.42, -71.32)
CIE-LCHlch(40.89, 88.51, 306.31°)
OKLaboklab(51.34% 0.0663 -0.2049)
OKLCHoklch(51.34% 0.215 287.9)
XYZxyz(20.0482, 11.7964, 66.1730)
Luminance0.1180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6842D8 #B2D842
analogous
#4267D8 #6842D8 #B342D8
triadic
#6842D8 #D86842 #42D868
tetradic
#6842D8 #D84267 #B2D842 #42D8B3
square
#6842D8 #D84267 #B2D842 #42D8B3
split-complementary
#6842D8 #D8B342 #67D842
monochromatic
#361B84 #4B26B7 #6842D8 #9175E2 #B9A7ED

Accessibility & contrast

On white

6.25
#6842D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#6842D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6842D8
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6842D8#FFFFFF#000000##FFFFFF
##6842D81.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DC
Deuteranopia (green-blind)
#005CD5
Tritanopia (blue-blind)
#3D6988
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6842d8;
/* rgb */ color: rgb(104, 66, 216);
/* oklch */ color: oklch(51.3% 0.215 287.9);
Tailwind
colors: {
  custom: {
    50: '#9d79e5',
    500: '#6842d8',
    950: '#000000',
  },
}
SCSS
$custom: #6842d8;
$custom-light: #9d79e5;
$custom-dark: #000000;
JSON
{
  "hex": "#6842d8",
  "rgb": {
    "r": 104,
    "g": 66,
    "b": 216
  },
  "hsl": {
    "h": 255.2,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.51337,
    "c": 0.21534,
    "h": 287.9
  },
  "luminance": 0.11797
}

Semantic roles & 50–950 ramp

primary
#6842D8
secondary
#CADA9C
accent
#E93FBE
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6842D8

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

Preview Lab → · Contrast checker → · Palette generator →

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