#6837BC#6837BC

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

Color values

HEX#6837BC
RGBrgb(104, 55, 188)
HSLhsl(262, 55%, 48%)
HSVhsv(262, 71%, 74%)
CMYKcmyk(44.7%, 70.7%, 0%, 26.3%)
CIE-LABlab(36.57, 50.36, -62.12)
CIE-LCHlch(36.57, 79.97, 309.03°)
OKLaboklab(47.55% 0.0816 -0.1778)
OKLCHoklch(47.55% 0.196 294.6)
XYZxyz(16.1498, 9.3058, 48.5125)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6837BC #8BBC37
analogous
#3749BC #6837BC #AA37BC
triadic
#6837BC #BC6837 #37BC68
tetradic
#6837BC #BC3749 #8BBC37 #37BCAA
square
#6837BC #BC3749 #8BBC37 #37BCAA
split-complementary
#6837BC #BCAA37 #49BC37
monochromatic
#341B5D #4E298D #6837BC #8960D0 #AC8FDE

Accessibility & contrast

On white

7.34
#6837BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#6837BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6837BC
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6837BC#FFFFFF#000000##FFFFFF
##6837BC1.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C0
Deuteranopia (green-blind)
#0054B9
Tritanopia (blue-blind)
#505976
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6837bc;
/* rgb */ color: rgb(104, 55, 188);
/* oklch */ color: oklch(47.5% 0.196 294.6);
Tailwind
colors: {
  custom: {
    50: '#9a72d1',
    500: '#6837bc',
    950: '#000000',
  },
}
SCSS
$custom: #6837bc;
$custom-light: #9a72d1;
$custom-dark: #000000;
JSON
{
  "hex": "#6837bc",
  "rgb": {
    "r": 104,
    "g": 55,
    "b": 188
  },
  "hsl": {
    "h": 262.105,
    "s": 54.733,
    "l": 47.647
  },
  "oklch": {
    "l": 0.47545,
    "c": 0.19565,
    "h": 294.6
  },
  "luminance": 0.09306
}

Semantic roles & 50–950 ramp

primary
#6837BC
secondary
#B0C986
accent
#DE4AA7
background
#FAF7FD
surface
#F3EDFA
border
#CDC8D3
text
#0F0814
muted
#7F7B83

Preview Lab

Preview with #6837BC

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

Preview Lab → · Contrast checker → · Palette generator →

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