#6837C2#6837C2

#6837C2 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.0% C 0.202 H 293.4°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#6837C2
RGBrgb(104, 55, 194)
HSLhsl(261, 56%, 49%)
HSVhsv(261, 72%, 76%)
CMYKcmyk(46.4%, 71.6%, 0%, 23.9%)
CIE-LABlab(37.06, 51.96, -64.84)
CIE-LCHlch(37.06, 83.09, 308.71°)
OKLaboklab(48.05% 0.0804 -0.1858)
OKLCHoklch(48.05% 0.202 293.4)
XYZxyz(16.8100, 9.5700, 51.9900)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6837C2 #91C237
analogous
#374CC2 #6837C2 #AE37C2
triadic
#6837C2 #C26837 #37C268
tetradic
#6837C2 #C2374C #91C237 #37C2AE
square
#6837C2 #C2374C #91C237 #37C2AE
split-complementary
#6837C2 #C2AE37 #4CC237
monochromatic
#351C63 #4E2992 #6837C2 #8B63D3 #AE93E0

Accessibility & contrast

On white

7.21
#6837C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#6837C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6837C2
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6837C2#FFFFFF#000000##FFFFFF
##6837C21.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C6
Deuteranopia (green-blind)
#0055BF
Tritanopia (blue-blind)
#4D5B79
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6837c2;
/* rgb */ color: rgb(104, 55, 194);
/* oklch */ color: oklch(48.0% 0.202 293.4);
Tailwind
colors: {
  custom: {
    50: '#9b72d5',
    500: '#6837c2',
    950: '#000000',
  },
}
SCSS
$custom: #6837c2;
$custom-light: #9b72d5;
$custom-dark: #000000;
JSON
{
  "hex": "#6837c2",
  "rgb": {
    "r": 104,
    "g": 55,
    "b": 194
  },
  "hsl": {
    "h": 261.151,
    "s": 55.823,
    "l": 48.824
  },
  "oklch": {
    "l": 0.48047,
    "c": 0.20245,
    "h": 293.4
  },
  "luminance": 0.0957
}

Semantic roles & 50–950 ramp

primary
#6837C2
secondary
#B4CB89
accent
#DF49AA
background
#FAF7FD
surface
#F3EDFA
border
#CDC8D3
text
#0F0814
muted
#7F7B83

Preview Lab

Preview with #6837C2

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

Preview Lab → · Contrast checker → · Palette generator →

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