#6839CB#6839CB

#6839CB is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.1% C 0.210 H 291.4°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#6839CB
RGBrgb(104, 57, 203)
HSLhsl(259, 58%, 51%)
HSVhsv(259, 72%, 80%)
CMYKcmyk(48.8%, 71.9%, 0%, 20.4%)
CIE-LABlab(38.16, 53.39, -68.28)
CIE-LCHlch(38.16, 86.68, 308.02°)
OKLaboklab(49.06% 0.0767 -0.1959)
OKLCHoklch(49.06% 0.21 291.4)
XYZxyz(17.9485, 10.1804, 57.5076)
Luminance0.1018 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6839CB #9CCB39
analogous
#3953CB #6839CB #B139CB
triadic
#6839CB #CB6839 #39CB68
tetradic
#6839CB #CB3953 #9CCB39 #39CBB1
square
#6839CB #CB3953 #9CCB39 #39CBB1
split-complementary
#6839CB #CBB139 #53CB39
monochromatic
#361D6D #4F299D #6839CB #8D69D8 #B29AE4

Accessibility & contrast

On white

6.92
#6839CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#6839CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6839CB
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6839CB#FFFFFF#000000##FFFFFF
##6839CB1.006.923.046.92
#FFFFFF6.921.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCF
Deuteranopia (green-blind)
#0057C8
Tritanopia (blue-blind)
#475F7F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6839cb;
/* rgb */ color: rgb(104, 57, 203);
/* oklch */ color: oklch(49.1% 0.210 291.4);
Tailwind
colors: {
  custom: {
    50: '#9c74dc',
    500: '#6839cb',
    950: '#000000',
  },
}
SCSS
$custom: #6839cb;
$custom-light: #9c74dc;
$custom-dark: #000000;
JSON
{
  "hex": "#6839cb",
  "rgb": {
    "r": 104,
    "g": 57,
    "b": 203
  },
  "hsl": {
    "h": 259.315,
    "s": 58.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.49063,
    "c": 0.21039,
    "h": 291.4
  },
  "luminance": 0.10181
}

Semantic roles & 50–950 ramp

primary
#6839CB
secondary
#BBD090
accent
#E246B0
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6839CB

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

Preview Lab → · Contrast checker → · Palette generator →

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