#6841B2#6841B2

#6841B2 is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.1% C 0.171 H 295.1°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#6841B2
RGBrgb(104, 65, 178)
HSLhsl(261, 47%, 48%)
HSVhsv(261, 63%, 70%)
CMYKcmyk(41.6%, 63.5%, 0%, 30.2%)
CIE-LABlab(37.73, 42.35, -54.33)
CIE-LCHlch(37.73, 68.89, 307.94°)
OKLaboklab(48.14% 0.0725 -0.1549)
OKLCHoklch(48.14% 0.171 295.1)
XYZxyz(15.6330, 9.9376, 43.2054)
Luminance0.0994 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6841B2 #8BB241
analogous
#4152B2 #6841B2 #A041B2
triadic
#6841B2 #B26841 #41B268
tetradic
#6841B2 #B24152 #8BB241 #41B2A0
square
#6841B2 #B24152 #8BB241 #41B2A0
split-complementary
#6841B2 #B2A041 #52B241
monochromatic
#342058 #4E3185 #6841B2 #8968C8 #AC95D8

Accessibility & contrast

On white

7.03
#6841B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#6841B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6841B2
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6841B2#FFFFFF#000000##FFFFFF
##6841B21.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB6
Deuteranopia (green-blind)
#0057B0
Tritanopia (blue-blind)
#555B73
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6841b2;
/* rgb */ color: rgb(104, 65, 178);
/* oklch */ color: oklch(48.1% 0.171 295.1);
Tailwind
colors: {
  custom: {
    50: '#9978ca',
    500: '#6841b2',
    950: '#000000',
  },
}
SCSS
$custom: #6841b2;
$custom-light: #9978ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6841b2",
  "rgb": {
    "r": 104,
    "g": 65,
    "b": 178
  },
  "hsl": {
    "h": 260.708,
    "s": 46.502,
    "l": 47.647
  },
  "oklch": {
    "l": 0.4814,
    "c": 0.17106,
    "h": 295.1
  },
  "luminance": 0.09938
}

Semantic roles & 50–950 ramp

primary
#6841B2
secondary
#B0C48B
accent
#D652A8
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6841B2

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

Preview Lab → · Contrast checker → · Palette generator →

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