#6839BC#6839BC

#6839BC is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.8% C 0.193 H 294.3°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#6839BC
RGBrgb(104, 57, 188)
HSLhsl(262, 53%, 48%)
HSVhsv(262, 70%, 74%)
CMYKcmyk(44.7%, 69.7%, 0%, 26.3%)
CIE-LABlab(36.93, 49.35, -61.53)
CIE-LCHlch(36.93, 78.87, 308.73°)
OKLaboklab(47.8% 0.0796 -0.1761)
OKLCHoklch(47.8% 0.193 294.3)
XYZxyz(16.2467, 9.4997, 48.5448)
Luminance0.0950 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6839BC #8DBC39
analogous
#394BBC #6839BC #A939BC
triadic
#6839BC #BC6839 #39BC68
tetradic
#6839BC #BC394B #8DBC39 #39BCA9
square
#6839BC #BC394B #8DBC39 #39BCA9
split-complementary
#6839BC #BCA939 #4BBC39
monochromatic
#341D5E #4E2B8D #6839BC #8A63D0 #AD92DE

Accessibility & contrast

On white

7.24
#6839BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#6839BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6839BC
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6839BC#FFFFFF#000000##FFFFFF
##6839BC1.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C0
Deuteranopia (green-blind)
#0055B9
Tritanopia (blue-blind)
#505A76
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6839bc;
/* rgb */ color: rgb(104, 57, 188);
/* oklch */ color: oklch(47.8% 0.193 294.3);
Tailwind
colors: {
  custom: {
    50: '#9a73d1',
    500: '#6839bc',
    950: '#000000',
  },
}
SCSS
$custom: #6839bc;
$custom-light: #9a73d1;
$custom-dark: #000000;
JSON
{
  "hex": "#6839bc",
  "rgb": {
    "r": 104,
    "g": 57,
    "b": 188
  },
  "hsl": {
    "h": 261.527,
    "s": 53.469,
    "l": 48.039
  },
  "oklch": {
    "l": 0.47803,
    "c": 0.19327,
    "h": 294.3
  },
  "luminance": 0.095
}

Semantic roles & 50–950 ramp

primary
#6839BC
secondary
#B2C988
accent
#DD4BA9
background
#FAF7FD
surface
#F3EDFA
border
#CDC8D3
text
#0F0814
muted
#7F7B83

Preview Lab

Preview with #6839BC

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

Preview Lab → · Contrast checker → · Palette generator →

#6839BC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva