#6836B2#6836B2

#6836B2 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.6% C 0.185 H 297.1°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#6836B2
RGBrgb(104, 54, 178)
HSLhsl(264, 53%, 45%)
HSVhsv(264, 70%, 70%)
CMYKcmyk(41.6%, 69.7%, 0%, 30.2%)
CIE-LABlab(35.59, 48.21, -57.81)
CIE-LCHlch(35.59, 75.27, 309.83°)
OKLaboklab(46.6% 0.0844 -0.1651)
OKLCHoklch(46.6% 0.185 297.1)
XYZxyz(15.0619, 8.7955, 43.0150)
Luminance0.0880 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6836B2 #80B236
analogous
#3642B2 #6836B2 #A636B2
triadic
#6836B2 #B26836 #36B268
tetradic
#6836B2 #B23642 #80B236 #36B2A6
square
#6836B2 #B23642 #80B236 #36B2A6
split-complementary
#6836B2 #B2A636 #42B236
monochromatic
#311A54 #4D2883 #6836B2 #8759CD #A988DB

Accessibility & contrast

On white

7.61
#6836B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#6836B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6836B2
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6836B2#FFFFFF#000000##FFFFFF
##6836B21.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0052AF
Tritanopia (blue-blind)
#555470
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6836b2;
/* rgb */ color: rgb(104, 54, 178);
/* oklch */ color: oklch(46.6% 0.185 297.1);
Tailwind
colors: {
  custom: {
    50: '#9971ca',
    500: '#6836b2',
    950: '#000000',
  },
}
SCSS
$custom: #6836b2;
$custom-light: #9971ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6836b2",
  "rgb": {
    "r": 104,
    "g": 54,
    "b": 178
  },
  "hsl": {
    "h": 264.194,
    "s": 53.448,
    "l": 45.49
  },
  "oklch": {
    "l": 0.46599,
    "c": 0.18544,
    "h": 297.1
  },
  "luminance": 0.08796
}

Semantic roles & 50–950 ramp

primary
#6836B2
secondary
#A9C57F
accent
#DD4BA2
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0F0813
muted
#7E7B82

Preview Lab

Preview with #6836B2

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

Preview Lab → · Contrast checker → · Palette generator →

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