#6842BB#6842BB

#6842BB is a mid, vivid violet. Relative luminance 0.104; OKLCH L 49.0% C 0.181 H 293.0°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#6842BB
RGBrgb(104, 66, 187)
HSLhsl(259, 48%, 50%)
HSVhsv(259, 65%, 73%)
CMYKcmyk(44.4%, 64.7%, 0%, 26.7%)
CIE-LABlab(38.60, 44.29, -58.23)
CIE-LCHlch(38.60, 73.16, 307.26°)
OKLaboklab(48.98% 0.0705 -0.1664)
OKLCHoklch(48.98% 0.181 293)
XYZxyz(16.6243, 10.4268, 48.1407)
Luminance0.1043 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6842BB #95BB42
analogous
#4259BB #6842BB #A542BB
triadic
#6842BB #BB6842 #42BB68
tetradic
#6842BB #BB4259 #95BB42 #42BBA5
square
#6842BB #BB4259 #95BB42 #42BBA5
split-complementary
#6842BB #BBA542 #59BB42
monochromatic
#362261 #4F328E #6842BB #8C6ECC #B09CDC

Accessibility & contrast

On white

6.81
#6842BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#6842BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6842BB
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6842BB#FFFFFF#000000##FFFFFF
##6842BB1.006.813.096.81
#FFFFFF6.811.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBF
Deuteranopia (green-blind)
#0059B8
Tritanopia (blue-blind)
#505F78
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6842bb;
/* rgb */ color: rgb(104, 66, 187);
/* oklch */ color: oklch(49.0% 0.181 293.0);
Tailwind
colors: {
  custom: {
    50: '#9978d0',
    500: '#6842bb',
    950: '#000000',
  },
}
SCSS
$custom: #6842bb;
$custom-light: #9978d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6842bb",
  "rgb": {
    "r": 104,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 258.843,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.48977,
    "c": 0.18075,
    "h": 293
  },
  "luminance": 0.10427
}

Semantic roles & 50–950 ramp

primary
#6842BB
secondary
#B7C891
accent
#D750AD
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0F0914
muted
#7E7B82

Preview Lab

Preview with #6842BB

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

Preview Lab → · Contrast checker → · Palette generator →

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