#6837C1#6837C1

#6837C1 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.0% C 0.201 H 293.6°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#6837C1
RGBrgb(104, 55, 193)
HSLhsl(261, 56%, 49%)
HSVhsv(261, 72%, 76%)
CMYKcmyk(46.1%, 71.5%, 0%, 24.3%)
CIE-LABlab(36.98, 51.69, -64.39)
CIE-LCHlch(36.98, 82.57, 308.76°)
OKLaboklab(47.96% 0.0806 -0.1845)
OKLCHoklch(47.96% 0.201 293.6)
XYZxyz(16.6981, 9.5252, 51.4005)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6837C1 #90C137
analogous
#374BC1 #6837C1 #AD37C1
triadic
#6837C1 #C16837 #37C168
tetradic
#6837C1 #C1374B #90C137 #37C1AD
square
#6837C1 #C1374B #90C137 #37C1AD
split-complementary
#6837C1 #C1AD37 #4BC137
monochromatic
#351C62 #4E2991 #6837C1 #8A63D2 #AE92E0

Accessibility & contrast

On white

7.23
#6837C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6837C1
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6837C1#FFFFFF#000000##FFFFFF
##6837C11.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C5
Deuteranopia (green-blind)
#0055BE
Tritanopia (blue-blind)
#4E5A78
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6837c1;
/* rgb */ color: rgb(104, 55, 193);
/* oklch */ color: oklch(48.0% 0.201 293.6);
Tailwind
colors: {
  custom: {
    50: '#9b72d5',
    500: '#6837c1',
    950: '#000000',
  },
}
SCSS
$custom: #6837c1;
$custom-light: #9b72d5;
$custom-dark: #000000;
JSON
{
  "hex": "#6837c1",
  "rgb": {
    "r": 104,
    "g": 55,
    "b": 193
  },
  "hsl": {
    "h": 261.304,
    "s": 55.645,
    "l": 48.627
  },
  "oklch": {
    "l": 0.47963,
    "c": 0.20131,
    "h": 293.6
  },
  "luminance": 0.09526
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6837C1

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

Preview Lab → · Contrast checker → · Palette generator →

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