#6842BE#6842BE

#6842BE is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.2% C 0.184 H 292.4°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#6842BE
RGBrgb(104, 66, 190)
HSLhsl(258, 49%, 50%)
HSVhsv(258, 65%, 75%)
CMYKcmyk(45.3%, 65.3%, 0%, 25.5%)
CIE-LABlab(38.82, 45.12, -59.62)
CIE-LCHlch(38.82, 74.77, 307.12°)
OKLaboklab(49.21% 0.0702 -0.1705)
OKLCHoklch(49.21% 0.184 292.4)
XYZxyz(16.9488, 10.5567, 49.8498)
Luminance0.1056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6842BE #98BE42
analogous
#425ABE #6842BE #A642BE
triadic
#6842BE #BE6842 #42BE68
tetradic
#6842BE #BE425A #98BE42 #42BEA6
square
#6842BE #BE425A #98BE42 #42BEA6
split-complementary
#6842BE #BEA642 #5ABE42
monochromatic
#362263 #4F3291 #6842BE #8C70CE #B19DDD

Accessibility & contrast

On white

6.75
#6842BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#6842BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6842BE
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6842BE#FFFFFF#000000##FFFFFF
##6842BE1.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC2
Deuteranopia (green-blind)
#0059BB
Tritanopia (blue-blind)
#4F607A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6842be;
/* rgb */ color: rgb(104, 66, 190);
/* oklch */ color: oklch(49.2% 0.184 292.4);
Tailwind
colors: {
  custom: {
    50: '#9a79d2',
    500: '#6842be',
    950: '#000000',
  },
}
SCSS
$custom: #6842be;
$custom-light: #9a79d2;
$custom-dark: #000000;
JSON
{
  "hex": "#6842be",
  "rgb": {
    "r": 104,
    "g": 66,
    "b": 190
  },
  "hsl": {
    "h": 258.387,
    "s": 48.819,
    "l": 50.196
  },
  "oklch": {
    "l": 0.49211,
    "c": 0.1844,
    "h": 292.4
  },
  "luminance": 0.10557
}

Semantic roles & 50–950 ramp

primary
#6842BE
secondary
#B9CA92
accent
#D84FAE
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0F0914
muted
#7E7B83

Preview Lab

Preview with #6842BE

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

Preview Lab → · Contrast checker → · Palette generator →

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