#6842BF#6842BF

#6842BF is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.3% C 0.186 H 292.2°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#6842BF
RGBrgb(104, 66, 191)
HSLhsl(258, 49%, 50%)
HSVhsv(258, 65%, 75%)
CMYKcmyk(45.5%, 65.4%, 0%, 25.1%)
CIE-LABlab(38.90, 45.40, -60.08)
CIE-LCHlch(38.90, 75.31, 307.08°)
OKLaboklab(49.29% 0.0701 -0.1719)
OKLCHoklch(49.29% 0.186 292.2)
XYZxyz(17.0585, 10.6005, 50.4274)
Luminance0.1060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6842BF #99BF42
analogous
#425ABF #6842BF #A642BF
triadic
#6842BF #BF6842 #42BF68
tetradic
#6842BF #BF425A #99BF42 #42BFA6
square
#6842BF #BF425A #99BF42 #42BFA6
split-complementary
#6842BF #BFA642 #5ABF42
monochromatic
#362265 #4F3292 #6842BF #8D70CE #B19DDE

Accessibility & contrast

On white

6.73
#6842BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#6842BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6842BF
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6842BF#FFFFFF#000000##FFFFFF
##6842BF1.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC3
Deuteranopia (green-blind)
#0059BC
Tritanopia (blue-blind)
#4E607B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6842bf;
/* rgb */ color: rgb(104, 66, 191);
/* oklch */ color: oklch(49.3% 0.186 292.2);
Tailwind
colors: {
  custom: {
    50: '#9a79d3',
    500: '#6842bf',
    950: '#000000',
  },
}
SCSS
$custom: #6842bf;
$custom-light: #9a79d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6842bf",
  "rgb": {
    "r": 104,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 258.24,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.4929,
    "c": 0.18561,
    "h": 292.2
  },
  "luminance": 0.10601
}

Semantic roles & 50–950 ramp

primary
#6842BF
secondary
#B9CA93
accent
#D94FAF
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0F0914
muted
#7E7B83

Preview Lab

Preview with #6842BF

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

Preview Lab → · Contrast checker → · Palette generator →

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