#6842BC#6842BC

#6842BC is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.1% C 0.182 H 292.8°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#6842BC
RGBrgb(104, 66, 188)
HSLhsl(259, 48%, 50%)
HSVhsv(259, 65%, 74%)
CMYKcmyk(44.7%, 64.9%, 0%, 26.3%)
CIE-LABlab(38.67, 44.56, -58.69)
CIE-LCHlch(38.67, 73.70, 307.21°)
OKLaboklab(49.06% 0.0704 -0.1678)
OKLCHoklch(49.06% 0.182 292.8)
XYZxyz(16.7317, 10.4698, 48.7065)
Luminance0.1047 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6842BC #96BC42
analogous
#4259BC #6842BC #A542BC
triadic
#6842BC #BC6842 #42BC68
tetradic
#6842BC #BC4259 #96BC42 #42BCA5
square
#6842BC #BC4259 #96BC42 #42BCA5
split-complementary
#6842BC #BCA542 #59BC42
monochromatic
#362261 #4F328F #6842BC #8C6FCC #B09CDC

Accessibility & contrast

On white

6.79
#6842BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #6842BC
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6842BC#FFFFFF#000000##FFFFFF
##6842BC1.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC0
Deuteranopia (green-blind)
#0059B9
Tritanopia (blue-blind)
#505F79
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6842bc;
/* rgb */ color: rgb(104, 66, 188);
/* oklch */ color: oklch(49.1% 0.182 292.8);
Tailwind
colors: {
  custom: {
    50: '#9a79d1',
    500: '#6842bc',
    950: '#000000',
  },
}
SCSS
$custom: #6842bc;
$custom-light: #9a79d1;
$custom-dark: #000000;
JSON
{
  "hex": "#6842bc",
  "rgb": {
    "r": 104,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 258.689,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.49055,
    "c": 0.18196,
    "h": 292.8
  },
  "luminance": 0.1047
}

Semantic roles & 50–950 ramp

primary
#6842BC
secondary
#B7C991
accent
#D850AD
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0F0914
muted
#7E7B82

Preview Lab

Preview with #6842BC

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

Preview Lab → · Contrast checker → · Palette generator →

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