#6842C8#6842C8

#6842C8 is a mid, vivid violet. Relative luminance 0.110; OKLCH L 50.0% C 0.196 H 290.5°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#6842C8
RGBrgb(104, 66, 200)
HSLhsl(257, 55%, 52%)
HSVhsv(257, 67%, 78%)
CMYKcmyk(48%, 67%, 0%, 21.6%)
CIE-LABlab(39.60, 47.92, -64.20)
CIE-LCHlch(39.60, 80.11, 306.74°)
OKLaboklab(50.01% 0.0689 -0.184)
OKLCHoklch(50.01% 0.196 290.5)
XYZxyz(18.0795, 11.0089, 55.8047)
Luminance0.1101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6842C8 #A2C842
analogous
#425FC8 #6842C8 #AB42C8
triadic
#6842C8 #C86842 #42C868
tetradic
#6842C8 #C8425F #A2C842 #42C8AB
square
#6842C8 #C8425F #A2C842 #42C8AB
split-complementary
#6842C8 #C8AB42 #5FC842
monochromatic
#37206F #4E2E9F #6842C8 #8E71D6 #B4A1E4

Accessibility & contrast

On white

6.56
#6842C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#6842C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6842C8
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6842C8#FFFFFF#000000##FFFFFF
##6842C81.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CC
Deuteranopia (green-blind)
#005AC5
Tritanopia (blue-blind)
#49637F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6842c8;
/* rgb */ color: rgb(104, 66, 200);
/* oklch */ color: oklch(50.0% 0.196 290.5);
Tailwind
colors: {
  custom: {
    50: '#9b79da',
    500: '#6842c8',
    950: '#000000',
  },
}
SCSS
$custom: #6842c8;
$custom-light: #9b79da;
$custom-dark: #000000;
JSON
{
  "hex": "#6842c8",
  "rgb": {
    "r": 104,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 257.015,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.50008,
    "c": 0.19645,
    "h": 290.5
  },
  "luminance": 0.1101
}

Semantic roles & 50–950 ramp

primary
#6842C8
secondary
#C0D096
accent
#DE4AB4
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6842C8

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

Preview Lab → · Contrast checker → · Palette generator →

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