#6837BB#6837BB

#6837BB is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.5% C 0.195 H 294.9°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#6837BB
RGBrgb(104, 55, 187)
HSLhsl(262, 55%, 47%)
HSVhsv(262, 71%, 73%)
CMYKcmyk(44.4%, 70.6%, 0%, 26.7%)
CIE-LABlab(36.49, 50.09, -61.67)
CIE-LCHlch(36.49, 79.45, 309.09°)
OKLaboklab(47.46% 0.0818 -0.1765)
OKLCHoklch(47.46% 0.195 294.9)
XYZxyz(16.0423, 9.2629, 47.9468)
Luminance0.0926 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6837BB #8ABB37
analogous
#3748BB #6837BB #AA37BB
triadic
#6837BB #BB6837 #37BB68
tetradic
#6837BB #BB3748 #8ABB37 #37BBAA
square
#6837BB #BB3748 #8ABB37 #37BBAA
split-complementary
#6837BB #BBAA37 #48BB37
monochromatic
#331B5C #4E298C #6837BB #895FD0 #AC8EDE

Accessibility & contrast

On white

7.36
#6837BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#6837BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6837BB
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6837BB#FFFFFF#000000##FFFFFF
##6837BB1.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BF
Deuteranopia (green-blind)
#0054B8
Tritanopia (blue-blind)
#515875
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6837bb;
/* rgb */ color: rgb(104, 55, 187);
/* oklch */ color: oklch(47.5% 0.195 294.9);
Tailwind
colors: {
  custom: {
    50: '#9a72d0',
    500: '#6837bb',
    950: '#000000',
  },
}
SCSS
$custom: #6837bb;
$custom-light: #9a72d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6837bb",
  "rgb": {
    "r": 104,
    "g": 55,
    "b": 187
  },
  "hsl": {
    "h": 262.273,
    "s": 54.545,
    "l": 47.451
  },
  "oklch": {
    "l": 0.47462,
    "c": 0.1945,
    "h": 294.9
  },
  "luminance": 0.09263
}

Semantic roles & 50–950 ramp

primary
#6837BB
secondary
#B0C985
accent
#DE4AA7
background
#FAF7FC
surface
#F3EDF9
border
#CDC8D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6837BB

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

Preview Lab → · Contrast checker → · Palette generator →

#6837BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva