#6836B7#6836B7

#6836B7 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.0% C 0.191 H 295.9°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#6836B7
RGBrgb(104, 54, 183)
HSLhsl(263, 54%, 46%)
HSVhsv(263, 70%, 72%)
CMYKcmyk(43.2%, 70.5%, 0%, 28.2%)
CIE-LABlab(35.98, 49.53, -60.12)
CIE-LCHlch(35.98, 77.90, 309.48°)
OKLaboklab(47.01% 0.0835 -0.1719)
OKLCHoklch(47.01% 0.191 295.9)
XYZxyz(15.5731, 8.9999, 45.7072)
Luminance0.0900 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6836B7 #85B736
analogous
#3645B7 #6836B7 #A936B7
triadic
#6836B7 #B76836 #36B768
tetradic
#6836B7 #B73645 #85B736 #36B7A9
square
#6836B7 #B73645 #85B736 #36B7A9
split-complementary
#6836B7 #B7A936 #45B736
monochromatic
#321A58 #4D2888 #6836B7 #885BCF #AA8BDD

Accessibility & contrast

On white

7.50
#6836B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#6836B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6836B7
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6836B7#FFFFFF#000000##FFFFFF
##6836B71.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BB
Deuteranopia (green-blind)
#0053B4
Tritanopia (blue-blind)
#535673
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6836b7;
/* rgb */ color: rgb(104, 54, 183);
/* oklch */ color: oklch(47.0% 0.191 295.9);
Tailwind
colors: {
  custom: {
    50: '#9a71ce',
    500: '#6836b7',
    950: '#000000',
  },
}
SCSS
$custom: #6836b7;
$custom-light: #9a71ce;
$custom-dark: #000000;
JSON
{
  "hex": "#6836b7",
  "rgb": {
    "r": 104,
    "g": 54,
    "b": 183
  },
  "hsl": {
    "h": 263.256,
    "s": 54.43,
    "l": 46.471
  },
  "oklch": {
    "l": 0.47005,
    "c": 0.19114,
    "h": 295.9
  },
  "luminance": 0.09
}

Semantic roles & 50–950 ramp

primary
#6836B7
secondary
#ACC782
accent
#DE4AA5
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0F0814
muted
#7E7B82

Preview Lab

Preview with #6836B7

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

Preview Lab → · Contrast checker → · Palette generator →

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