#6843D2#6843D2

#6843D2 is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.0% C 0.207 H 288.7°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#6843D2
RGBrgb(104, 67, 210)
HSLhsl(256, 61%, 54%)
HSVhsv(256, 68%, 82%)
CMYKcmyk(50.5%, 68.1%, 0%, 17.6%)
CIE-LABlab(40.59, 50.20, -68.37)
CIE-LCHlch(40.59, 84.82, 306.29°)
OKLaboklab(50.97% 0.0665 -0.1962)
OKLCHoklch(50.97% 0.207 288.7)
XYZxyz(19.3456, 11.6096, 62.1818)
Luminance0.1161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6843D2 #ADD243
analogous
#4366D2 #6843D2 #AF43D2
triadic
#6843D2 #D26843 #43D268
tetradic
#6843D2 #D24366 #ADD243 #43D2AF
square
#6843D2 #D24366 #ADD243 #43D2AF
split-complementary
#6843D2 #D2AF43 #66D243
monochromatic
#361E7D #4C2AAE #6843D2 #9074DE #B7A6EA

Accessibility & contrast

On white

6.32
#6843D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#6843D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6843D2
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6843D2#FFFFFF#000000##FFFFFF
##6843D21.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D6
Deuteranopia (green-blind)
#005CCF
Tritanopia (blue-blind)
#426785
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6843d2;
/* rgb */ color: rgb(104, 67, 210);
/* oklch */ color: oklch(51.0% 0.207 288.7);
Tailwind
colors: {
  custom: {
    50: '#9c7ae1',
    500: '#6843d2',
    950: '#000000',
  },
}
SCSS
$custom: #6843d2;
$custom-light: #9c7ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#6843d2",
  "rgb": {
    "r": 104,
    "g": 67,
    "b": 210
  },
  "hsl": {
    "h": 255.524,
    "s": 61.373,
    "l": 54.314
  },
  "oklch": {
    "l": 0.50969,
    "c": 0.20716,
    "h": 288.7
  },
  "luminance": 0.11611
}

Semantic roles & 50–950 ramp

primary
#6843D2
secondary
#C7D79A
accent
#E443BB
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6843D2

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

Preview Lab → · Contrast checker → · Palette generator →

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