#6843D4#6843D4

#6843D4 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.1% C 0.210 H 288.4°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#6843D4
RGBrgb(104, 67, 212)
HSLhsl(255, 63%, 55%)
HSVhsv(255, 68%, 83%)
CMYKcmyk(50.9%, 68.4%, 0%, 16.9%)
CIE-LABlab(40.75, 50.76, -69.25)
CIE-LCHlch(40.75, 85.86, 306.24°)
OKLaboklab(51.14% 0.0661 -0.1988)
OKLCHoklch(51.14% 0.21 288.4)
XYZxyz(19.5963, 11.7099, 63.5023)
Luminance0.1171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6843D4 #AFD443
analogous
#4367D4 #6843D4 #B043D4
triadic
#6843D4 #D46843 #43D468
tetradic
#6843D4 #D44367 #AFD443 #43D4B0
square
#6843D4 #D44367 #AFD443 #43D4B0
split-complementary
#6843D4 #D4B043 #67D443
monochromatic
#361D7F #4B29B1 #6843D4 #9075DF #B8A7EB

Accessibility & contrast

On white

6.28
#6843D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#6843D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6843D4
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6843D4#FFFFFF#000000##FFFFFF
##6843D41.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D8
Deuteranopia (green-blind)
#005CD1
Tritanopia (blue-blind)
#406886
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6843d4;
/* rgb */ color: rgb(104, 67, 212);
/* oklch */ color: oklch(51.1% 0.210 288.4);
Tailwind
colors: {
  custom: {
    50: '#9d7ae2',
    500: '#6843d4',
    950: '#000000',
  },
}
SCSS
$custom: #6843d4;
$custom-light: #9d7ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#6843d4",
  "rgb": {
    "r": 104,
    "g": 67,
    "b": 212
  },
  "hsl": {
    "h": 255.31,
    "s": 62.771,
    "l": 54.706
  },
  "oklch": {
    "l": 0.51136,
    "c": 0.20952,
    "h": 288.4
  },
  "luminance": 0.11711
}

Semantic roles & 50–950 ramp

primary
#6843D4
secondary
#C8D89B
accent
#E642BC
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6843D4

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

Preview Lab → · Contrast checker → · Palette generator →

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