#6842D6#6842D6

#6842D6 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.2% C 0.213 H 288.2°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#6842D6
RGBrgb(104, 66, 214)
HSLhsl(255, 64%, 55%)
HSVhsv(255, 69%, 84%)
CMYKcmyk(51.4%, 69.2%, 0%, 16.1%)
CIE-LABlab(40.72, 51.85, -70.44)
CIE-LCHlch(40.72, 87.47, 306.36°)
OKLaboklab(51.17% 0.0667 -0.2023)
OKLCHoklch(51.17% 0.213 288.2)
XYZxyz(19.7912, 11.6936, 64.8196)
Luminance0.1169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6842D6 #B0D642
analogous
#4266D6 #6842D6 #B242D6
triadic
#6842D6 #D66842 #42D668
tetradic
#6842D6 #D64266 #B0D642 #42D6B2
square
#6842D6 #D64266 #B0D642 #42D6B2
split-complementary
#6842D6 #D6B242 #66D642
monochromatic
#361C82 #4B27B4 #6842D6 #9074E1 #B8A7EC

Accessibility & contrast

On white

6.29
#6842D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#6842D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6842D6
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6842D6#FFFFFF#000000##FFFFFF
##6842D61.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DA
Deuteranopia (green-blind)
#005CD3
Tritanopia (blue-blind)
#3F6887
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6842d6;
/* rgb */ color: rgb(104, 66, 214);
/* oklch */ color: oklch(51.2% 0.213 288.2);
Tailwind
colors: {
  custom: {
    50: '#9d79e4',
    500: '#6842d6',
    950: '#000000',
  },
}
SCSS
$custom: #6842d6;
$custom-light: #9d79e4;
$custom-dark: #000000;
JSON
{
  "hex": "#6842d6",
  "rgb": {
    "r": 104,
    "g": 66,
    "b": 214
  },
  "hsl": {
    "h": 255.405,
    "s": 64.348,
    "l": 54.902
  },
  "oklch": {
    "l": 0.51168,
    "c": 0.21301,
    "h": 288.2
  },
  "luminance": 0.11695
}

Semantic roles & 50–950 ramp

primary
#6842D6
secondary
#C9D99B
accent
#E740BC
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6842D6

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

Preview Lab → · Contrast checker → · Palette generator →

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