#6842C2#6842C2

#6842C2 is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.5% C 0.189 H 291.6°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#6842C2
RGBrgb(104, 66, 194)
HSLhsl(258, 51%, 51%)
HSVhsv(258, 66%, 76%)
CMYKcmyk(46.4%, 66%, 0%, 23.9%)
CIE-LABlab(39.13, 46.24, -61.47)
CIE-LCHlch(39.13, 76.92, 306.95°)
OKLaboklab(49.53% 0.0697 -0.1759)
OKLCHoklch(49.53% 0.189 291.6)
XYZxyz(17.3920, 10.7339, 52.1840)
Luminance0.1074 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6842C2 #9CC242
analogous
#425CC2 #6842C2 #A842C2
triadic
#6842C2 #C26842 #42C268
tetradic
#6842C2 #C2425C #9CC242 #42C2A8
square
#6842C2 #C2425C #9CC242 #42C2A8
split-complementary
#6842C2 #C2A842 #5CC242
monochromatic
#362268 #4F3196 #6842C2 #8D70D1 #B29FE0

Accessibility & contrast

On white

6.67
#6842C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#6842C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6842C2
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6842C2#FFFFFF#000000##FFFFFF
##6842C21.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC6
Deuteranopia (green-blind)
#0059BF
Tritanopia (blue-blind)
#4C617C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6842c2;
/* rgb */ color: rgb(104, 66, 194);
/* oklch */ color: oklch(49.5% 0.189 291.6);
Tailwind
colors: {
  custom: {
    50: '#9a79d5',
    500: '#6842c2',
    950: '#000000',
  },
}
SCSS
$custom: #6842c2;
$custom-light: #9a79d5;
$custom-dark: #000000;
JSON
{
  "hex": "#6842c2",
  "rgb": {
    "r": 104,
    "g": 66,
    "b": 194
  },
  "hsl": {
    "h": 257.813,
    "s": 51.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.49527,
    "c": 0.18924,
    "h": 291.6
  },
  "luminance": 0.10735
}

Semantic roles & 50–950 ramp

primary
#6842C2
secondary
#BBCC94
accent
#DB4DB1
background
#FAF7FD
surface
#F3EDFA
border
#CDC8D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #6842C2

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

Preview Lab → · Contrast checker → · Palette generator →

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