#6842D9#6842D9

#6842D9 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.4% C 0.217 H 287.8°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#6842D9
RGBrgb(104, 66, 217)
HSLhsl(255, 67%, 55%)
HSVhsv(255, 70%, 85%)
CMYKcmyk(52.1%, 69.6%, 0%, 14.9%)
CIE-LABlab(40.97, 52.70, -71.76)
CIE-LCHlch(40.97, 89.03, 306.29°)
OKLaboklab(51.42% 0.0661 -0.2062)
OKLCHoklch(51.42% 0.217 287.8)
XYZxyz(20.1778, 11.8483, 66.8559)
Luminance0.1185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6842D9 #B3D942
analogous
#4268D9 #6842D9 #B342D9
triadic
#6842D9 #D96842 #42D968
tetradic
#6842D9 #D94268 #B3D942 #42D9B3
square
#6842D9 #D94268 #B3D942 #42D9B3
split-complementary
#6842D9 #D9B342 #68D942
monochromatic
#361B86 #4A25B9 #6842D9 #9175E3 #B9A8ED

Accessibility & contrast

On white

6.23
#6842D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#6842D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6842D9
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6842D9#FFFFFF#000000##FFFFFF
##6842D91.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DE
Deuteranopia (green-blind)
#005DD6
Tritanopia (blue-blind)
#3C6989
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6842d9;
/* rgb */ color: rgb(104, 66, 217);
/* oklch */ color: oklch(51.4% 0.217 287.8);
Tailwind
colors: {
  custom: {
    50: '#9d79e6',
    500: '#6842d9',
    950: '#000000',
  },
}
SCSS
$custom: #6842d9;
$custom-light: #9d79e6;
$custom-dark: #000000;
JSON
{
  "hex": "#6842d9",
  "rgb": {
    "r": 104,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 255.099,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.51422,
    "c": 0.21651,
    "h": 287.8
  },
  "luminance": 0.11849
}

Semantic roles & 50–950 ramp

primary
#6842D9
secondary
#CBDB9C
accent
#E93EBE
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6842D9

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

Preview Lab → · Contrast checker → · Palette generator →

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