#6843D9#6843D9

#6843D9 is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.6% C 0.215 H 287.6°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#6843D9
RGBrgb(104, 67, 217)
HSLhsl(255, 66%, 56%)
HSVhsv(255, 69%, 85%)
CMYKcmyk(52.1%, 69.1%, 0%, 14.9%)
CIE-LABlab(41.16, 52.18, -71.45)
CIE-LCHlch(41.16, 88.47, 306.14°)
OKLaboklab(51.56% 0.0653 -0.2053)
OKLCHoklch(51.56% 0.215 287.6)
XYZxyz(20.2368, 11.9661, 66.8756)
Luminance0.1197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6843D9 #B4D943
analogous
#4369D9 #6843D9 #B343D9
triadic
#6843D9 #D96843 #43D968
tetradic
#6843D9 #D94369 #B4D943 #43D9B3
square
#6843D9 #D94369 #B4D943 #43D9B3
split-complementary
#6843D9 #D9B343 #69D943
monochromatic
#361B86 #4A25B9 #6843D9 #9176E3 #BAA9EE

Accessibility & contrast

On white

6.19
#6843D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#6843D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6843D9
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6843D9#FFFFFF#000000##FFFFFF
##6843D91.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065DD
Deuteranopia (green-blind)
#005DD6
Tritanopia (blue-blind)
#3C6A89
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6843d9;
/* rgb */ color: rgb(104, 67, 217);
/* oklch */ color: oklch(51.6% 0.215 287.6);
Tailwind
colors: {
  custom: {
    50: '#9d7ae6',
    500: '#6843d9',
    950: '#000000',
  },
}
SCSS
$custom: #6843d9;
$custom-light: #9d7ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#6843d9",
  "rgb": {
    "r": 104,
    "g": 67,
    "b": 217
  },
  "hsl": {
    "h": 254.8,
    "s": 66.372,
    "l": 55.686
  },
  "oklch": {
    "l": 0.51557,
    "c": 0.21538,
    "h": 287.6
  },
  "luminance": 0.11967
}

Semantic roles & 50–950 ramp

primary
#6843D9
secondary
#CCDB9D
accent
#E93FBF
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6843D9

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

Preview Lab → · Contrast checker → · Palette generator →

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