#6840BA#6840BA

#6840BA is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.6% C 0.182 H 293.6°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#6840BA
RGBrgb(104, 64, 186)
HSLhsl(260, 49%, 49%)
HSVhsv(260, 66%, 73%)
CMYKcmyk(44.1%, 65.6%, 0%, 27.1%)
CIE-LABlab(38.12, 45.11, -58.42)
CIE-LCHlch(38.12, 73.81, 307.67°)
OKLaboklab(48.61% 0.0728 -0.167)
OKLCHoklch(48.61% 0.182 293.6)
XYZxyz(16.4028, 10.1546, 47.5406)
Luminance0.1016 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6840BA #92BA40
analogous
#4055BA #6840BA #A540BA
triadic
#6840BA #BA6840 #40BA68
tetradic
#6840BA #BA4055 #92BA40 #40BAA5
square
#6840BA #BA4055 #92BA40 #40BAA5
split-complementary
#6840BA #BAA540 #55BA40
monochromatic
#35215F #4F308C #6840BA #8B6BCC #AF99DC

Accessibility & contrast

On white

6.93
#6840BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#6840BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6840BA
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6840BA#FFFFFF#000000##FFFFFF
##6840BA1.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBE
Deuteranopia (green-blind)
#0058B7
Tritanopia (blue-blind)
#515D77
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6840ba;
/* rgb */ color: rgb(104, 64, 186);
/* oklch */ color: oklch(48.6% 0.182 293.6);
Tailwind
colors: {
  custom: {
    50: '#9a77d0',
    500: '#6840ba',
    950: '#000000',
  },
}
SCSS
$custom: #6840ba;
$custom-light: #9a77d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6840ba",
  "rgb": {
    "r": 104,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 259.672,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.48607,
    "c": 0.18214,
    "h": 293.6
  },
  "luminance": 0.10155
}

Semantic roles & 50–950 ramp

primary
#6840BA
secondary
#B5C88E
accent
#D84FAB
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0F0914
muted
#7E7B82

Preview Lab

Preview with #6840BA

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

Preview Lab → · Contrast checker → · Palette generator →

#6840BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva