#6843B2#6843B2

#6843B2 is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.4% C 0.168 H 294.6°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#6843B2
RGBrgb(104, 67, 178)
HSLhsl(260, 45%, 48%)
HSVhsv(260, 62%, 70%)
CMYKcmyk(41.6%, 62.4%, 0%, 30.2%)
CIE-LABlab(38.15, 41.23, -53.65)
CIE-LCHlch(38.15, 67.67, 307.54°)
OKLaboklab(48.44% 0.0702 -0.153)
OKLCHoklch(48.44% 0.168 294.6)
XYZxyz(15.7498, 10.1713, 43.2443)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6843B2 #8DB243
analogous
#4355B2 #6843B2 #9F43B2
triadic
#6843B2 #B26843 #43B268
tetradic
#6843B2 #B24355 #8DB243 #43B29F
square
#6843B2 #B24355 #8DB243 #43B29F
split-complementary
#6843B2 #B29F43 #55B243
monochromatic
#342259 #4E3286 #6843B2 #8A6BC7 #AD97D8

Accessibility & contrast

On white

6.92
#6843B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#6843B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6843B2
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6843B2#FFFFFF#000000##FFFFFF
##6843B21.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB6
Deuteranopia (green-blind)
#0058B0
Tritanopia (blue-blind)
#555C74
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6843b2;
/* rgb */ color: rgb(104, 67, 178);
/* oklch */ color: oklch(48.4% 0.168 294.6);
Tailwind
colors: {
  custom: {
    50: '#9879ca',
    500: '#6843b2',
    950: '#000000',
  },
}
SCSS
$custom: #6843b2;
$custom-light: #9879ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6843b2",
  "rgb": {
    "r": 104,
    "g": 67,
    "b": 178
  },
  "hsl": {
    "h": 260,
    "s": 45.306,
    "l": 48.039
  },
  "oklch": {
    "l": 0.48444,
    "c": 0.1683,
    "h": 294.6
  },
  "luminance": 0.10172
}

Semantic roles & 50–950 ramp

primary
#6843B2
secondary
#B2C48D
accent
#D553AA
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6843B2

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

Preview Lab → · Contrast checker → · Palette generator →

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