#6836B6#6836B6

#6836B6 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 46.9% C 0.190 H 296.1°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#6836B6
RGBrgb(104, 54, 182)
HSLhsl(263, 54%, 46%)
HSVhsv(263, 70%, 71%)
CMYKcmyk(42.9%, 70.3%, 0%, 28.6%)
CIE-LABlab(35.90, 49.27, -59.66)
CIE-LCHlch(35.90, 77.37, 309.55°)
OKLaboklab(46.92% 0.0837 -0.1706)
OKLCHoklch(46.92% 0.19 296.1)
XYZxyz(15.4694, 8.9585, 45.1610)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6836B6 #84B636
analogous
#3644B6 #6836B6 #A836B6
triadic
#6836B6 #B66836 #36B668
tetradic
#6836B6 #B63644 #84B636 #36B6A8
square
#6836B6 #B63644 #84B636 #36B6A8
split-complementary
#6836B6 #B6A836 #44B636
monochromatic
#321A58 #4D2887 #6836B6 #885BCE #AA8ADC

Accessibility & contrast

On white

7.52
#6836B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#6836B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6836B6
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6836B6#FFFFFF#000000##FFFFFF
##6836B61.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BA
Deuteranopia (green-blind)
#0053B3
Tritanopia (blue-blind)
#535672
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6836b6;
/* rgb */ color: rgb(104, 54, 182);
/* oklch */ color: oklch(46.9% 0.190 296.1);
Tailwind
colors: {
  custom: {
    50: '#9a71cd',
    500: '#6836b6',
    950: '#000000',
  },
}
SCSS
$custom: #6836b6;
$custom-light: #9a71cd;
$custom-dark: #000000;
JSON
{
  "hex": "#6836b6",
  "rgb": {
    "r": 104,
    "g": 54,
    "b": 182
  },
  "hsl": {
    "h": 263.438,
    "s": 54.237,
    "l": 46.275
  },
  "oklch": {
    "l": 0.46923,
    "c": 0.19,
    "h": 296.1
  },
  "luminance": 0.08959
}

Semantic roles & 50–950 ramp

primary
#6836B6
secondary
#ABC681
accent
#DE4AA4
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0F0814
muted
#7E7B82

Preview Lab

Preview with #6836B6

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

Preview Lab → · Contrast checker → · Palette generator →

#6836B6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva